Commit 78530240 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Found-by: 's avatarDale Curtis <dalecurtis@google.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4d888a0a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment