[FFmpeg-devel] [PATCH] latm: fix initialization on some streams when no extradata is available

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Jun 21 11:48:34 CEST 2012


On Thu, Jun 21, 2012 at 11:03:42AM +0200, Hendrik Leppkes wrote:
> Hi,
> 
> attached patch improves the behavior of the AAC LATM decoder when using
> avcodec directly (without avformat initing all values properly) and not
> having the LATM extradata available to initialize the codec.
> Essentially, it ensures the decoder is properly initialized, especially in
> the case when the sample rate and chan config are set properly, however due
> to missing extradata the remainder of the decoder was not fully initialized
> yet.
> 
> Feedback welcome.

Shouldn't rather all the stuff be set up in the init function?
We already have some code to do a fallback configuration for missing
extradata I believe.
Also, this patch would make it print a "config changed" message even
though it did not change, it was just not set up before.


More information about the ffmpeg-devel mailing list