On Wed, Nov 8, 2017 at 9:36 PM, Nicolas George <geo...@nsup.org> wrote: > This is a terrible API, there is no doubt that > people would prefer a single field. >
I don't. We've done a lot of work to remove fields from generic data structures which are used by single codecs on semi-obscure cases. The fact alone that after years of avcodec and a PNG decoder this field wasn't asked for regularly alone speaks to me that its not generic enough to warrant inclusion in AVFrame. Certainly it would make for nicer code if you could access every field directly, but if we do that for every piece of data provided by all random single decoders, we have a nightmare of a frame structure, with hundreds of fields that only ever are applicable in a minority of cases. - Hendrik _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel