avcodec/dolby_e: use av_clip_uintp2()
[ffmpeg.git] / libavcodec / wmv2dec.c
index 3be810c..20dbee5 100644 (file)
@@ -222,7 +222,7 @@ int ff_wmv2_decode_secondary_picture_header(MpegEncContext *s)
         ff_intrax8_decode_picture(&w->x8, &s->current_picture,
                                   &s->gb, &s->mb_x, &s->mb_y,
                                   2 * s->qscale, (s->qscale - 1) | 1,
-                                  s->loop_filter);
+                                  s->loop_filter, s->low_delay);
 
         ff_er_add_slice(&w->s.er, 0, 0,
                         (w->s.mb_x >> 1) - 1, (w->s.mb_y >> 1) - 1,
@@ -470,7 +470,8 @@ static av_cold int wmv2_decode_init(AVCodecContext *avctx)
     ff_wmv2_common_init(w);
 
     return ff_intrax8_common_init(avctx, &w->x8, &w->s.idsp,
-                                  w->s.mb_width, w->s.mb_height, &w->s);
+                                  w->s.block, w->s.block_last_index,
+                                  w->s.mb_width, w->s.mb_height);
 }
 
 static av_cold int wmv2_decode_end(AVCodecContext *avctx)