Commit 2fd9ce92 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264_slice: assert that reinit does not occur after the first slice

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 38d5241b
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment