avcodec/h264_cabac: Fix use with the checked bitstream-reader

Found-by: Dale Curtis <dalecurtis@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/54/head
Michael Niedermayer 11 years ago
parent 4d888a0ad8
commit 7853024071
  1. 3
      libavcodec/h264_cabac.c

@ -1619,6 +1619,9 @@ decode_cabac_residual_internal(H264Context *h, int16_t *block,
cc.range = h->cabac.range;
cc.low = h->cabac.low;
cc.bytestream= h->cabac.bytestream;
#if !UNCHECKED_BITSTREAM_READER
cc.bytestream_end = h->cabac.bytestream_end;
#endif
#else
#define CC &h->cabac
#endif

Loading…
Cancel
Save