]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_slice.c
avcodec/h264_slice: assert that reinit does not occur after the first slice
[ffmpeg] / libavcodec / h264_slice.c
index 8c3b9f354c9ffa090a75d76e5393def5e10428e1..05a6ccfa074a76aa0c96b91ee46e9bdb6b64f75c 100644 (file)
@@ -1459,6 +1459,8 @@ int ff_h264_decode_slice_header(H264Context *h, H264Context *h0)
             return AVERROR_INVALIDDATA;
         }
 
+        av_assert1(first_slice);
+
         ff_h264_flush_change(h);
 
         if ((ret = get_pixel_format(h, 1)) < 0)