1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avcodec/h26[45]_metadata_bsf: Fix range of chroma_sample_loc_type

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-07-02 17:28:19 +02:00
parent 12392ffee5
commit 75a2d25a6f
2 changed files with 2 additions and 2 deletions

View File

@ -625,7 +625,7 @@ static const AVOption h264_metadata_options[] = {
{ "chroma_sample_loc_type", "Set chroma sample location type (figure E-1)", { "chroma_sample_loc_type", "Set chroma sample location type (figure E-1)",
OFFSET(chroma_sample_loc_type), AV_OPT_TYPE_INT, OFFSET(chroma_sample_loc_type), AV_OPT_TYPE_INT,
{ .i64 = -1 }, -1, 6, FLAGS }, { .i64 = -1 }, -1, 5, FLAGS },
{ "tick_rate", "Set VUI tick rate (time_scale / num_units_in_tick)", { "tick_rate", "Set VUI tick rate (time_scale / num_units_in_tick)",
OFFSET(tick_rate), AV_OPT_TYPE_RATIONAL, OFFSET(tick_rate), AV_OPT_TYPE_RATIONAL,

View File

@ -437,7 +437,7 @@ static const AVOption h265_metadata_options[] = {
{ "chroma_sample_loc_type", "Set chroma sample location type (figure E-1)", { "chroma_sample_loc_type", "Set chroma sample location type (figure E-1)",
OFFSET(chroma_sample_loc_type), AV_OPT_TYPE_INT, OFFSET(chroma_sample_loc_type), AV_OPT_TYPE_INT,
{ .i64 = -1 }, -1, 6, FLAGS }, { .i64 = -1 }, -1, 5, FLAGS },
{ "tick_rate", { "tick_rate",
"Set VPS and VUI tick rate (time_scale / num_units_in_tick)", "Set VPS and VUI tick rate (time_scale / num_units_in_tick)",