]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ivi_common.c
h264: add a parameter to the CABAC macro.
[ffmpeg] / libavcodec / ivi_common.c
index 3d7cd13b7f122da4a90c8f1089d72ff647c26c06..f068e45e8925b6ae84f271a166c278dc09d37d32 100644 (file)
@@ -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,