[FFmpeg-devel] [PATCH 2/2] lavf: Add function for accessing Matroska Codec <-> CodecID table

Derek Buitenhuis derek.buitenhuis at gmail.com
Wed May 30 22:15:43 CEST 2012


On 30/05/2012 4:10 PM, Reimar Döffinger wrote:
> MPlayer used the AVI fields a long time before those functions existed,
> and it used them the way I described. I admit I don't know how they
> came to be or what whoever involved thought (and just assumed it was
> related to what I needed it for), but if it was the way
> you say I think it was a really silly idea already then, basically
> the same thing as instead of having a av_find_input_format function
> we had av_get_avi_format and a av_get_asf_format and a.... function.

The fact is unless you maintain these mappings by hand (unreasonable),
or use lavf (we're not), or your demuxer returns a lavc-friendly ID,
you simply cannot use libavcodec.

I think the best idea would be to have a more generic API for getting
various codec mapping tables, rather than a per-demuxer function. I
think you suggested this earlier.

Would you be against this?

- Derek


More information about the ffmpeg-devel mailing list