[FFmpeg-devel] [PATCH]Fix type of default value type for v210 decoder option

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Nov 24 14:06:47 CET 2012


Hi!

Attached patch should fix the type of the default value for the custom_stride 
option of the v210 decoder.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
index 103e136..d508ce8 100644
--- a/libavcodec/v210dec.c
+++ b/libavcodec/v210dec.c
@@ -172,7 +172,7 @@ static av_cold int decode_close(AVCodecContext *avctx)
 #define V210DEC_FLAGS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM
 static const AVOption v210dec_options[] = {
     {"custom_stride", "Custom V210 stride", offsetof(V210DecContext, custom_stride), FF_OPT_TYPE_INT,
-     {.dbl = 0}, INT_MIN, INT_MAX, V210DEC_FLAGS},
+     {.i64 = 0}, INT_MIN, INT_MAX, V210DEC_FLAGS},
     {NULL}
 };
 


More information about the ffmpeg-devel mailing list