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

Francois Cartegnie git at videolan.org
Tue Feb 26 20:10:01 CET 2019


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

demux: mp4: set bit per sample for twos

6b0bfe62329241e83990414b2c2edfcc5ab203f4 regression

(cherry picked from commit e3b0a7a6d4253dea748aa217b26ec4012fdc3ca7)

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

 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 5033b7a610..20f8935e76 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -1056,6 +1056,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