diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-29 13:02:28 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-29 13:02:28 +0000 |
commit | 5abd626e206deb6cc398ca93ebd884f0cf136b73 (patch) | |
tree | 9f6a0d7a9550def49f0b2bc65605a672036f0952 /libswscale/options.c | |
parent | 5ba24e4982f988343ac1444b7ddd16cecc3e9bbf (diff) | |
download | ffmpeg-5abd626e206deb6cc398ca93ebd884f0cf136b73.tar.gz |
Amend constraints for the src_format and dst_format options in the
SWScale context.
Originally committed as revision 32403 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/options.c')
-rw-r--r-- | libswscale/options.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libswscale/options.c b/libswscale/options.c index 96e64c643c..c23a0efe66 100644 --- a/libswscale/options.c +++ b/libswscale/options.c @@ -19,6 +19,7 @@ */ #include "libavutil/avutil.h" +#include "libavutil/pixfmt.h" #include "libavcodec/opt.h" #include "swscale.h" #include "swscale_internal.h" @@ -61,8 +62,8 @@ static const AVOption options[] = { { "srch", "source height" , OFFSET(srcH), FF_OPT_TYPE_INT, DEFAULT, 1, INT_MAX, VE }, { "dstw", "destination width" , OFFSET(dstW), FF_OPT_TYPE_INT, DEFAULT, 1, INT_MAX, VE }, { "dsth", "destination height", OFFSET(dstH), FF_OPT_TYPE_INT, DEFAULT, 1, INT_MAX, VE }, - { "src_format", "source format" , OFFSET(srcFormat), FF_OPT_TYPE_INT, DEFAULT, 1, UINT_MAX, VE }, - { "dst_format", "destination format", OFFSET(dstFormat), FF_OPT_TYPE_INT, DEFAULT, 1, UINT_MAX, VE }, + { "src_format", "source format" , OFFSET(srcFormat), FF_OPT_TYPE_INT, DEFAULT, 0, PIX_FMT_NB-1, VE }, + { "dst_format", "destination format", OFFSET(dstFormat), FF_OPT_TYPE_INT, DEFAULT, 0, PIX_FMT_NB-1, VE }, { "src_range" , "source range" , OFFSET(srcRange) , FF_OPT_TYPE_INT, DEFAULT, 0, 1, VE }, { "dst_range" , "destination range" , OFFSET(dstRange) , FF_OPT_TYPE_INT, DEFAULT, 0, 1, VE }, { "param0" , "scaler param 0" , OFFSET(param[0]) , FF_OPT_TYPE_DOUBLE, DEFAULT, INT_MIN, INT_MAX, VE }, |