aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-03-02 19:52:18 +0100
committerPaul B Mahol <onemda@gmail.com>2021-03-08 19:22:21 +0100
commite6ff5d0facabb016e51038227a8944e36d24f1af (patch)
tree62f399819bf11722e6cf0d15832250eb853a1957
parentf067fcb9dfe78704ab3691e4fda0338541ca5bb7 (diff)
downloadffmpeg-e6ff5d0facabb016e51038227a8944e36d24f1af.tar.gz
avcodec/mpeg4videodec: add forgotten flags to mpeg4_options
-rw-r--r--libavcodec/mpeg4videodec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index fd985f0430..2ca804fdc6 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -3551,9 +3551,11 @@ static av_cold int decode_init(AVCodecContext *avctx)
return 0;
}
+#define OFFSET(x) offsetof(MpegEncContext, x)
+#define FLAGS AV_OPT_FLAG_EXPORT | AV_OPT_FLAG_READONLY
static const AVOption mpeg4_options[] = {
- {"quarter_sample", "1/4 subpel MC", offsetof(MpegEncContext, quarter_sample), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0},
- {"divx_packed", "divx style packed b frames", offsetof(MpegEncContext, divx_packed), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0},
+ {"quarter_sample", "1/4 subpel MC", OFFSET(quarter_sample), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, FLAGS},
+ {"divx_packed", "divx style packed b frames", OFFSET(divx_packed), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, FLAGS},
{NULL}
};