demux: mp4: set bit per sample for twos
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 13 Feb 2019 11:11:42 +0000 (12:11 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 13 Feb 2019 11:11:42 +0000 (12:11 +0100)
6b0bfe62329241e83990414b2c2edfcc5ab203f4 regression

modules/demux/mp4/essetup.c

index 32622b9..fc8d622 100644 (file)
@@ -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' ) ):