diff options
author | Matthieu Bouron <matthieu.bouron@gmail.com> | 2017-02-06 17:14:57 +0100 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@gmail.com> | 2017-03-15 11:46:15 +0100 |
commit | 1ade4d87bae8db3f2073c18eb322382ad7827bb9 (patch) | |
tree | 5bb17be402d50d63ed5e74115f36c4349fd186f9 /libavcodec/h264dec.c | |
parent | e90ad882819cc46add0ea5ad2cef81490cef96c4 (diff) | |
download | ffmpeg-1ade4d87bae8db3f2073c18eb322382ad7827bb9.tar.gz |
lavc/h264dec: use OFFSET macro
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r-- | libavcodec/h264dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 35598ea7cd..9042169338 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -1077,8 +1077,8 @@ static int h264_decode_frame(AVCodecContext *avctx, void *data, #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_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}, + { "is_avc", "is avc", OFFSET(is_avc), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0 }, + { "nal_length_size", "nal_length_size", OFFSET(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_BOOL, { .i64 = -1 }, -1, 1, VD }, { NULL }, }; |