[vlc-commits] demux: mp4: set bitpersample for raw audio
Francois Cartegnie
git at videolan.org
Tue Feb 26 20:10:00 CET 2019
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 13 12:11:15 2019 +0100| [78fbb0f74623b097835d7d1115b21e2a02963a6b] | committer: Francois Cartegnie
demux: mp4: set bitpersample for raw audio
(cherry picked from commit 86663a5a76e65c13dd31a55f1455980c1cc186fd)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=78fbb0f74623b097835d7d1115b21e2a02963a6b
---
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 86c455734e..5033b7a610 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -1061,9 +1061,15 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
case( VLC_FOURCC( 'N', 'O', 'N', 'E' ) ):
{
if( (p_soun->i_samplesize+7)/8 == 1 )
+ {
p_track->fmt.i_codec = VLC_CODEC_U8;
+ p_track->fmt.audio.i_bitspersample = 8;
+ }
else
+ {
p_track->fmt.i_codec = VLC_FOURCC( 't', 'w', 'o', 's' );
+ p_track->fmt.audio.i_bitspersample = 16;
+ }
/* Buggy files workaround */
if( (p_track->i_timescale != p_soun->i_sampleratehi) )
More information about the vlc-commits
mailing list