Commit 99f76cec authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

demux: avi: fix non fixed sample size ADTS/AAC (fix #12727)

(cherry picked from commit 600d5e3974ef4ee7242dbc3411dd0dfe59f029c1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e0218024
...@@ -445,6 +445,11 @@ static int Open( vlc_object_t * p_this ) ...@@ -445,6 +445,11 @@ static int Open( vlc_object_t * p_this )
tk->i_blocksize = 0; /* fix vorbis VBR decoding */ 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 ); es_format_Init( &fmt, AUDIO_ES, tk->i_codec );
fmt.audio.i_channels = p_auds->p_wf->nChannels; fmt.audio.i_channels = p_auds->p_wf->nChannels;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment