diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-11-22 01:07:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-11-22 01:22:31 +0100 |
commit | fb520708482c0b68986057d72df55c1776eb7a03 (patch) | |
tree | 44d7ab8c6349f1af079f3f27b1bf79bc5d3361df | |
parent | c961ac4b0ca27d451c430553793b3fff88fc78e5 (diff) | |
download | ffmpeg-fb520708482c0b68986057d72df55c1776eb7a03.tar.gz |
avcodec/h264dec: use BOOL for skip_gray, noref_gray
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/h264dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index aa0022a3ab..0bf05b2cfe 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -1097,8 +1097,8 @@ static const AVOption h264_options[] = { { "nal_length_size", "nal_length_size", OFFSET(nal_length_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4, VDX }, { "enable_er", "Enable error resilience on damaged frames (unsafe)", OFFSET(enable_er), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, VD }, { "x264_build", "Assume this x264 version if no x264 version found in any SEI", OFFSET(x264_build), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, VD }, - { "skip_gray", "Do not return gray gap frames", OFFSET(skip_gray), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 1, VD }, - { "noref_gray", "Avoid using gray gap frames as references", OFFSET(noref_gray), AV_OPT_TYPE_INT, {.i64 = 1}, -1, 1, VD }, + { "skip_gray", "Do not return gray gap frames", OFFSET(skip_gray), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, VD }, + { "noref_gray", "Avoid using gray gap frames as references", OFFSET(noref_gray), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, VD }, { NULL }, }; |