[vlc-commits] demux: avi: fix non fixed sample size ADTS/AAC (fix #12727)
Francois Cartegnie
git at videolan.org
Tue Nov 11 11:20:26 CET 2014
vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 10 21:39:39 2014 +0100| [99f76cecbd9dc16f98988d9cbd6bc6db593b2b4c] | committer: Jean-Baptiste Kempf
demux: avi: fix non fixed sample size ADTS/AAC (fix #12727)
(cherry picked from commit 600d5e3974ef4ee7242dbc3411dd0dfe59f029c1)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=99f76cecbd9dc16f98988d9cbd6bc6db593b2b4c
---
modules/demux/avi/avi.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 2169c8a..3a31702 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -445,6 +445,11 @@ static int Open( vlc_object_t * p_this )
tk->i_blocksize = 0; /* fix vorbis VBR decoding */
}
+ if ( tk->i_codec == VLC_CODEC_MP4A )
+ {
+ tk->i_samplesize = 0; /* ADTS/AAC VBR */
+ }
+
es_format_Init( &fmt, AUDIO_ES, tk->i_codec );
fmt.audio.i_channels = p_auds->p_wf->nChannels;
More information about the vlc-commits
mailing list