[FFmpeg-cvslog] ivi_common: do not call MC for intra frames when dc_transform is unset
Anton Khirnov
git at videolan.org
Tue Mar 12 16:20:38 CET 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Mar 6 09:41:44 2013 +0100| [3ba40ebb6cc58753dc3746c718203bb31760deba] | committer: Anton Khirnov
ivi_common: do not call MC for intra frames when dc_transform is unset
CC:libav-stable at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3ba40ebb6cc58753dc3746c718203bb31760deba
---
libavcodec/ivi_common.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c
index 3d7cd13..f068e45 100644
--- a/libavcodec/ivi_common.c
+++ b/libavcodec/ivi_common.c
@@ -527,9 +527,10 @@ static int ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile
/* block not coded */
/* for intra blocks apply the dc slant transform */
/* for inter - perform the motion compensation without delta */
- if (is_intra && band->dc_transform) {
- band->dc_transform(&prev_dc, band->buf + buf_offs,
- band->pitch, blk_size);
+ if (is_intra) {
+ if (band->dc_transform)
+ band->dc_transform(&prev_dc, band->buf + buf_offs,
+ band->pitch, blk_size);
} else
mc_no_delta_func(band->buf + buf_offs,
band->ref_buf + buf_offs + mv_y * band->pitch + mv_x,
More information about the ffmpeg-cvslog
mailing list