diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-25 03:36:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-25 03:45:10 +0200 |
commit | 70f671c39e53f0e54914185dd3ed5afa6b66708b (patch) | |
tree | b655e18dc18c800ffb5a6375ebec6f717c7427ff /libavcodec/hevc.h | |
parent | 0f45e643cc09986ac7dc16de0c1705acf1c84377 (diff) | |
download | ffmpeg-streaming-70f671c39e53f0e54914185dd3ed5afa6b66708b.zip ffmpeg-streaming-70f671c39e53f0e54914185dd3ed5afa6b66708b.tar.gz |
avcodec/hevc: fix () in macros
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.h')
-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 3c88b69..9b4ed33 100644 --- a/libavcodec/hevc.h +++ b/libavcodec/hevc.h @@ -84,10 +84,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 |