[FFmpeg-devel] [PATCH] seperate parser from codec selection

Paul Kendall paul
Thu May 28 09:44:45 CEST 2009


On Tuesday 26 May 2009 09:26:50 pm Paul Kendall wrote:
> Further investigation shows that the parser was being closed in
> av_estimate_timings_from_pts. This was after the parser had run and
> changed the codec_id to CODEC_ID_AAC from CODEC_ID_LATM. When
> av_read_frame was then called it had no parser so it created one,
> an AAC parser.
>
> I have attached a patch that in the two places where this was happening
> it gets an ID from the parser, closes the parser and constructs a new
> one with the previous parser's ID so even though there is a new codec_id
> it will use the previous/correct parser type.
>
> Hopefully this patch is acceptable for what needs to be done.
>
> Cheers,
> Paul

Any comments on this patch?

Cheers,
Paul



More information about the ffmpeg-devel mailing list