[FFmpeg-devel] [PATCH 1/4] avcodec/h264dec: add missing flags to is_avc and nal_length_size AVOptions
Anton Khirnov
anton at khirnov.net
Sun Apr 11 12:56:41 EEST 2021
Quoting James Almer (2021-04-10 23:00:20)
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> libavcodec/h264dec.c | 5 +++--
> tests/ref/fate/mov-zombie | 2 +-
> 2 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
> index 47b9abbc5c..f44c8c8175 100644
> --- a/libavcodec/h264dec.c
> +++ b/libavcodec/h264dec.c
> @@ -1027,9 +1027,10 @@ static int h264_decode_frame(AVCodecContext *avctx, void *data,
>
> #define OFFSET(x) offsetof(H264Context, x)
> #define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM
> +#define VDE VD | AV_OPT_FLAG_EXPORT
> static const AVOption h264_options[] = {
> - { "is_avc", "is avc", OFFSET(is_avc), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0 },
> - { "nal_length_size", "nal_length_size", OFFSET(nal_length_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4, 0 },
> + { "is_avc", "is avc", OFFSET(is_avc), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, VDE },
> + { "nal_length_size", "nal_length_size", OFFSET(nal_length_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4, VDE },
Not objecting to the patch, but does anyone know how these fields are
useful to callers?
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list