]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264.c
lavc/Makefile: Fix standalone compilation of the svq3 decoder.
[ffmpeg] / libavcodec / h264.c
index 8eb3b13e12a4b942ee606ce1b9c5855da899d995..db68c0572222f293adc5aa805c90527ae285d2a6 100644 (file)
@@ -776,8 +776,6 @@ void ff_h264_flush_change(H264Context *h)
     h->frame_recovered = 0;
     h->current_slice = 0;
     h->mmco_reset = 1;
-    for (i = 0; i < h->nb_slice_ctx; i++)
-        h->slice_ctx[i].list_count = 0;
 }
 
 /* forget old pics after a seek */
@@ -951,7 +949,7 @@ again:
         case NAL_SLICE:
             sl->gb = nal->gb;
 
-            if ((err = ff_h264_decode_slice_header(h, sl)))
+            if ((err = ff_h264_decode_slice_header(h, sl, nal)))
                 break;
 
             if (h->sei.recovery_point.recovery_frame_cnt >= 0) {