aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_slice.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-07 03:45:14 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-07 03:59:45 +0100
commit2fd9ce92af43e6dcbc8ed7c26c00b052de48ccad (patch)
tree62dac9223aa6e099c461817693372b6d3cb13b4b /libavcodec/h264_slice.c
parent38d5241b7f36c1571a88517a0650caade16dd5f4 (diff)
downloadffmpeg-2fd9ce92af43e6dcbc8ed7c26c00b052de48ccad.tar.gz
avcodec/h264_slice: assert that reinit does not occur after the first slice
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r--libavcodec/h264_slice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 8c3b9f354c..05a6ccfa07 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -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)