summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/h264_mb_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg/libavcodec/h264_mb_template.c')
-rw-r--r--ffmpeg/libavcodec/h264_mb_template.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffmpeg/libavcodec/h264_mb_template.c b/ffmpeg/libavcodec/h264_mb_template.c
index 8ef93a1..da3a926 100644
--- a/ffmpeg/libavcodec/h264_mb_template.c
+++ b/ffmpeg/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;
@@ -138,8 +138,8 @@ static av_noinline void FUNC(hl_decode_mb)(H264Context *h)
if (SIMPLE || !CONFIG_GRAY || !(h->flags & CODEC_FLAG_GRAY)) {
if (!h->sps.chroma_format_idc) {
for (i = 0; i < 8; i++) {
- memset(dest_cb + i*uvlinesize, 1 << (bit_depth - 1), 8);
- memset(dest_cr + i*uvlinesize, 1 << (bit_depth - 1), 8);
+ memset(dest_cb + i * uvlinesize, 1 << (bit_depth - 1), 8);
+ memset(dest_cr + i * uvlinesize, 1 << (bit_depth - 1), 8);
}
} else {
const uint8_t *src_cb = h->intra_pcm_ptr + 256;