diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-25 03:36:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-02 22:59:50 +0200 |
commit | 7bce659e18fd907ffc08655f38e9343e16cb1a38 (patch) | |
tree | ac3d3b36d9e68f18c078caf114104fc0e374ed0f | |
parent | cb9379065f821bd4c28c0ca7d4fcee0752f4619a (diff) | |
download | ffmpeg-7bce659e18fd907ffc08655f38e9343e16cb1a38.tar.gz |
avcodec/hevc: fix () in macros
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 70f671c39e53f0e54914185dd3ed5afa6b66708b)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h index 4a6620f67b..a1c76fe49b 100644 --- a/libavcodec/hevc.h +++ b/libavcodec/hevc.h @@ -81,10 +81,10 @@ #define SAMPLE_CTB(tab, x, y) ((tab)[(y) * min_cb_width + (x)]) #define SAMPLE_CBF(tab, x, y) ((tab)[((y) & ((1<<log2_trafo_size)-1)) * MAX_CU_SIZE + ((x) & ((1<<log2_trafo_size)-1))]) -#define IS_IDR(s) (s->nal_unit_type == NAL_IDR_W_RADL || s->nal_unit_type == NAL_IDR_N_LP) -#define IS_BLA(s) (s->nal_unit_type == NAL_BLA_W_RADL || s->nal_unit_type == NAL_BLA_W_LP || \ - s->nal_unit_type == NAL_BLA_N_LP) -#define IS_IRAP(s) (s->nal_unit_type >= 16 && s->nal_unit_type <= 23) +#define IS_IDR(s) ((s)->nal_unit_type == NAL_IDR_W_RADL || (s)->nal_unit_type == NAL_IDR_N_LP) +#define IS_BLA(s) ((s)->nal_unit_type == NAL_BLA_W_RADL || (s)->nal_unit_type == NAL_BLA_W_LP || \ + (s)->nal_unit_type == NAL_BLA_N_LP) +#define IS_IRAP(s) ((s)->nal_unit_type >= 16 && (s)->nal_unit_type <= 23) /** * Table 7-3: NAL unit type codes |