avcodec/h264_slice: assert relation between current_slice ans slice_ctx

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/174/merge
Michael Niedermayer 9 years ago
parent 6c6f2e49e4
commit 873158fd76
  1. 3
      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,

Loading…
Cancel
Save