diff mbox

[FFmpeg-devel] lavc/h264dec: use OFFSET macro

Message ID 20170206161457.5556-1-matthieu.bouron@gmail.com
State Accepted
Commit 1ade4d87bae8db3f2073c18eb322382ad7827bb9
Headers show

Commit Message

Matthieu Bouron Feb. 6, 2017, 4:14 p.m. UTC
---
 libavcodec/h264dec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Michael Niedermayer Feb. 7, 2017, 6:56 p.m. UTC | #1
On Mon, Feb 06, 2017 at 05:14:57PM +0100, Matthieu Bouron wrote:
> ---
>  libavcodec/h264dec.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

ok

thx

[...]
Matthieu Bouron March 15, 2017, 9:57 a.m. UTC | #2
On Tue, Feb 07, 2017 at 07:56:55PM +0100, Michael Niedermayer wrote:
> On Mon, Feb 06, 2017 at 05:14:57PM +0100, Matthieu Bouron wrote:
> > ---
> >  libavcodec/h264dec.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> ok

Pushed. (and sorry for the delay).

Thanks,
Matthieu

[...]
diff mbox

Patch

diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 41c0964392..da34be81cc 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -1072,8 +1072,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 },
 };