[FFmpeg-devel] [PATCH] lavfi/buffersrc: set min and max values for pix_fmt option
Michael Niedermayer
michaelni at gmx.at
Mon Dec 16 16:41:20 CET 2013
On Mon, Dec 16, 2013 at 04:04:05PM +0100, Stefano Sabatini wrote:
> Currently the min and max values are not honored, but this will change in
> a following patch.
> ---
> libavfilter/buffersrc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
> index 6b6210d..996251b 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 = 0 }, .min = 0, .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 */
LGTM
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131216/20a3e628/attachment.asc>
More information about the ffmpeg-devel
mailing list