avcodec/h264_slice: assert relation between current_slice ans slice_ctx
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6c6f2e49e4
commit
873158fd76
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user