From 7fa00653a550c0d24b3951c0f9fed6350ecf5ce4 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 9 Mar 2013 20:37:11 +0100 Subject: h264: add a parameter to the FIELD_PICTURE macro. This way it does not look like a constant. --- libavcodec/h264.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/h264.h') diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 077202d..66708c0 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -62,7 +62,7 @@ #define MB_MBAFF(h) h->mb_mbaff #define MB_FIELD(h) h->mb_field_decoding_flag #define FRAME_MBAFF(h) h->mb_aff_frame -#define FIELD_PICTURE (h->picture_structure != PICT_FRAME) +#define FIELD_PICTURE(h) (h->picture_structure != PICT_FRAME) #define LEFT_MBS 2 #define LTOP 0 #define LBOT 1 @@ -71,7 +71,7 @@ #define MB_MBAFF(h) 0 #define MB_FIELD(h) 0 #define FRAME_MBAFF(h) 0 -#define FIELD_PICTURE 0 +#define FIELD_PICTURE(h) 0 #undef IS_INTERLACED #define IS_INTERLACED(mb_type) 0 #define LEFT_MBS 1 @@ -79,7 +79,7 @@ #define LBOT 0 #define LEFT(i) 0 #endif -#define FIELD_OR_MBAFF_PICTURE (FRAME_MBAFF(h) || FIELD_PICTURE) +#define FIELD_OR_MBAFF_PICTURE (FRAME_MBAFF(h) || FIELD_PICTURE(h)) #ifndef CABAC #define CABAC h->pps.cabac -- cgit v1.1