[FFmpeg-cvslog] avcodec/h264: use AV_OPT_TYPE_BOOL for is_avc option

Clément Bœsch git at videolan.org
Sat Sep 12 18:27:30 CEST 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Fri Sep 11 21:08:22 2015 +0200| [411c32386ad56bd3da7e875140bed2b035ca2619] | committer: Clément Bœsch

avcodec/h264: use AV_OPT_TYPE_BOOL for is_avc option

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=411c32386ad56bd3da7e875140bed2b035ca2619
---

 libavcodec/h264.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 907943e..b797893 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1947,7 +1947,7 @@ static av_cold int h264_decode_end(AVCodecContext *avctx)
 #define OFFSET(x) offsetof(H264Context, x)
 #define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM
 static const AVOption h264_options[] = {
-    {"is_avc", "is avc", offsetof(H264Context, is_avc), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, 0},
+    {"is_avc", "is avc", offsetof(H264Context, is_avc), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0},
     {"nal_length_size", "nal_length_size", offsetof(H264Context, nal_length_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4, 0},
     { "enable_er", "Enable error resilience on damaged frames (unsafe)", OFFSET(enable_er), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VD },
     { NULL },



More information about the ffmpeg-cvslog mailing list