diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-12-16 15:58:58 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-12-16 18:08:17 +0100 |
commit | 023693d786c2e16422fb4809c672e8f131027fa5 (patch) | |
tree | 1164d6c09bfc19e6fde25fd5cee4ed82650cf6cb | |
parent | 48d39c8786d2a1a36258d8e442602729eef0474c (diff) | |
download | ffmpeg-023693d786c2e16422fb4809c672e8f131027fa5.tar.gz |
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.
-rw-r--r-- | libavfilter/buffersrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index 6b6210df06..d84492cd35 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -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 */ |