[FFmpeg-devel] [PATCH] lavc/parser: export field order if not already set

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Sep 20 18:18:30 EEST 2016


2016-09-20 13:13 GMT+02:00 Rodger Combs <rodger.combs at gmail.com>:
> Some codecs set this in the parser, but not the decoder

> +#define FILL(name) if(s->name > 0 && avctx->name <= 0) avctx->name = s->name
> +    if (avctx->codec_type == AVMEDIA_TYPE_VIDEO) {
> +        FILL(field_order);

How is this a useful macro?

Carl Eugen


More information about the ffmpeg-devel mailing list