[vlc-commits] demux: mp4: set bit per sample for twos

Francois Cartegnie git at videolan.org
Wed Feb 13 12:15:14 CET 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 13 12:11:42 2019 +0100| [e3b0a7a6d4253dea748aa217b26ec4012fdc3ca7] | committer: Francois Cartegnie

demux: mp4: set bit per sample for twos

6b0bfe62329241e83990414b2c2edfcc5ab203f4 regression

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3b0a7a6d4253dea748aa217b26ec4012fdc3ca7
---

 modules/demux/mp4/essetup.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index 32622b9fb3..fc8d62222a 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -1075,6 +1075,12 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
             break;
         }
 
+        case VLC_FOURCC( 't', 'w', 'o', 's' ):
+        case VLC_FOURCC( 's', 'o', 'w', 't' ):
+            p_track->fmt.i_codec = p_sample->i_type;
+            p_track->fmt.audio.i_bitspersample = 16;
+            break;
+
         case 0x0000000:
         case( VLC_FOURCC( 'r', 'a', 'w', ' ' ) ):
         case( VLC_FOURCC( 'N', 'O', 'N', 'E' ) ):



More information about the vlc-commits mailing list