From 78530240715c3b127fcb0e5ead823816389f0cbf Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 24 Jan 2014 00:05:17 +0100 Subject: avcodec/h264_cabac: Fix use with the checked bitstream-reader Found-by: Dale Curtis Signed-off-by: Michael Niedermayer --- libavcodec/h264_cabac.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/h264_cabac.c') diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c index c0ca154bf7..d35c408788 100644 --- a/libavcodec/h264_cabac.c +++ b/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 -- cgit v1.2.3