mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-02 04:52:09 +00:00
lavfi/buffersrc: set min and max values for pix_fmt option
Currently the min and max values are not honored, but this will change in a following patch.
This commit is contained in:
parent
48d39c8786
commit
023693d786
@ -326,7 +326,7 @@ static const AVOption buffer_options[] = {
|
||||
{ "width", NULL, OFFSET(w), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, V },
|
||||
{ "video_size", NULL, OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, .flags = V },
|
||||
{ "height", NULL, OFFSET(h), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, V },
|
||||
{ "pix_fmt", NULL, OFFSET(pix_fmt), AV_OPT_TYPE_PIXEL_FMT, .flags = V },
|
||||
{ "pix_fmt", NULL, OFFSET(pix_fmt), AV_OPT_TYPE_PIXEL_FMT, { .i64 = AV_PIX_FMT_NONE }, .min = AV_PIX_FMT_NONE, .max = INT_MAX, .flags = V },
|
||||
#if FF_API_OLD_FILTER_OPTS
|
||||
/* those 4 are for compatibility with the old option passing system where each filter
|
||||
* did its own parsing */
|
||||
|
Loading…
Reference in New Issue
Block a user