[vlc-commits] demux: mp4: set bitpersample for raw audio
Francois Cartegnie
git at videolan.org
Wed Feb 13 12:15:12 CET 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 13 12:11:15 2019 +0100| [86663a5a76e65c13dd31a55f1455980c1cc186fd] | committer: Francois Cartegnie
demux: mp4: set bitpersample for raw audio
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86663a5a76e65c13dd31a55f1455980c1cc186fd
---
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 9e18888428..32622b9fb3 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -1080,9 +1080,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;
+ }
p_track->fmt.i_original_fourcc = p_track->fmt.i_codec;
/* Buggy files workaround */
More information about the vlc-commits
mailing list