diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-03-09 20:37:11 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-21 10:20:58 +0100 |
commit | e962bd08ee4b087d36ab0d7d7b3c90a642d46b3e (patch) | |
tree | 9c191d729812a0dfa18dc62e645178ffd8b65995 /libavcodec/h264_mb_template.c | |
parent | 6d2b6f21eb45ffbda1103c772060303648714832 (diff) | |
download | ffmpeg-e962bd08ee4b087d36ab0d7d7b3c90a642d46b3e.tar.gz |
h264: add a parameter to the CHROMA422 macro.
This way it does not look like a constant.
Diffstat (limited to 'libavcodec/h264_mb_template.c')
-rw-r--r-- | libavcodec/h264_mb_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_mb_template.c b/libavcodec/h264_mb_template.c index 769ac94d3d..957260a081 100644 --- a/libavcodec/h264_mb_template.c +++ b/libavcodec/h264_mb_template.c @@ -53,7 +53,7 @@ static av_noinline void FUNC(hl_decode_mb)(H264Context *h) const int is_h264 = !CONFIG_SVQ3_DECODER || SIMPLE || h->avctx->codec_id == AV_CODEC_ID_H264; void (*idct_add)(uint8_t *dst, int16_t *block, int stride); const int block_h = 16 >> h->chroma_y_shift; - const int chroma422 = CHROMA422; + const int chroma422 = CHROMA422(h); dest_y = h->cur_pic.f.data[0] + ((mb_x << PIXEL_SHIFT) + mb_y * h->linesize) * 16; dest_cb = h->cur_pic.f.data[1] + (mb_x << PIXEL_SHIFT) * 8 + mb_y * h->uvlinesize * block_h; |