OSDN Git Service

corrects the type of the AVOption parameter "bugs", patch by Takis
authorPanagiotis Issaris <takis.issaris@uhasselt.be>
Wed, 13 Sep 2006 09:28:48 +0000 (09:28 +0000)
committerGuillaume Poirier <gpoirier@mplayerhq.hu>
Wed, 13 Sep 2006 09:28:48 +0000 (09:28 +0000)
Original thread:
Date: Sep 11, 2006 1:43 PM
Subject: [Ffmpeg-devel] [PATCH] Wrong AVOption type

Originally committed as revision 6244 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/utils.c

index 7e1f9de..d2c09ca 100644 (file)
@@ -524,7 +524,7 @@ static const AVOption options[]={
 {"misc_bits", NULL, OFFSET(misc_bits), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
 {"frame_bits", NULL, OFFSET(frame_bits), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
 {"codec_tag", NULL, OFFSET(codec_tag), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
-{"bugs", "workaround not auto detected encoder bugs", OFFSET(workaround_bugs), FF_OPT_TYPE_INT, FF_BUG_AUTODETECT, INT_MIN, INT_MAX, V|D, "bug"},
+{"bugs", "workaround not auto detected encoder bugs", OFFSET(workaround_bugs), FF_OPT_TYPE_FLAGS, FF_BUG_AUTODETECT, INT_MIN, INT_MAX, V|D, "bug"},
 {"autodetect", NULL, 0, FF_OPT_TYPE_CONST, FF_BUG_AUTODETECT, INT_MIN, INT_MAX, V|D, "bug"},
 {"old_msmpeg4", NULL, 0, FF_OPT_TYPE_CONST, FF_BUG_OLD_MSMPEG4, INT_MIN, INT_MAX, V|D, "bug"},
 {"xvid_ilace", NULL, 0, FF_OPT_TYPE_CONST, FF_BUG_XVID_ILACE, INT_MIN, INT_MAX, V|D, "bug"},