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>
This commit is contained in:
Michael Niedermayer 2014-01-24 00:05:17 +01:00
parent 4d888a0ad8
commit 7853024071

View File

@ -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