diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-12 03:40:19 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-12 04:37:35 +0100 |
commit | 873158fd76f387142f5a5e6835052f4fd0ec6911 (patch) | |
tree | e22816f8076deba2b0dc1021f73d0fc10476aa47 /libavcodec/h264_slice.c | |
parent | 6c6f2e49e40a8728c6b0102c58b17d37dac901af (diff) | |
download | ffmpeg-873158fd76f387142f5a5e6835052f4fd0ec6911.tar.gz |
avcodec/h264_slice: assert relation between current_slice ans slice_ctx
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r-- | libavcodec/h264_slice.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 6a80d894e1..8a335538a1 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -1212,6 +1212,9 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl) } } + if (!h->current_slice) + av_assert0(sl == h->slice_ctx); + slice_type = get_ue_golomb_31(&sl->gb); if (slice_type > 9) { av_log(h->avctx, AV_LOG_ERROR, |