diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-17 18:57:26 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-17 19:13:26 +0100 |
commit | 03dab49a1267630375c4fc15dec1136814b1f117 (patch) | |
tree | 2b8ee0922540564cae4ec23c4a91eb03e540c5a0 /libavcodec | |
parent | a00bab347518d4824d51ec7078f1d84ca097c53b (diff) | |
download | ffmpeg-03dab49a1267630375c4fc15dec1136814b1f117.tar.gz |
avcodec/vp56: Add () to protect TRANSPOSE()s arguments
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vp56.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c index 8571cf3785..631924828d 100644 --- a/libavcodec/vp56.c +++ b/libavcodec/vp56.c @@ -701,7 +701,7 @@ av_cold int ff_vp56_init_context(AVCodecContext *avctx, VP56Context *s, ff_vp3dsp_init(&s->vp3dsp, avctx->flags); ff_vp56dsp_init(&s->vp56dsp, avctx->codec->id); for (i = 0; i < 64; i++) { -#define TRANSPOSE(x) (x >> 3) | ((x & 7) << 3) +#define TRANSPOSE(x) (((x) >> 3) | (((x) & 7) << 3)) s->idct_scantable[i] = TRANSPOSE(ff_zigzag_direct[i]); #undef TRANSPOSE } |