From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/libavcodec/h264idct_template.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ffmpeg/libavcodec/h264idct_template.c') diff --git a/ffmpeg/libavcodec/h264idct_template.c b/ffmpeg/libavcodec/h264idct_template.c index 9f16e1d..42c32d1 100644 --- a/ffmpeg/libavcodec/h264idct_template.c +++ b/ffmpeg/libavcodec/h264idct_template.c @@ -145,7 +145,7 @@ void FUNCC(ff_h264_idct_dc_add)(uint8_t *_dst, int16_t *_block, int stride){ pixel *dst = (pixel*)_dst; dctcoef *block = (dctcoef*)_block; int dc = (block[0] + 32) >> 6; - stride >>= sizeof(pixel)-1; + stride /= sizeof(pixel); block[0] = 0; for( j = 0; j < 4; j++ ) { @@ -161,7 +161,7 @@ void FUNCC(ff_h264_idct8_dc_add)(uint8_t *_dst, int16_t *_block, int stride){ dctcoef *block = (dctcoef*)_block; int dc = (block[0] + 32) >> 6; block[0] = 0; - stride >>= sizeof(pixel)-1; + stride /= sizeof(pixel); for( j = 0; j < 8; j++ ) { for( i = 0; i < 8; i++ ) -- cgit v1.2.3