Signed-off-by: Paul B Mahol <[email protected]>
---
libavcodec/xxan.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/xxan.c b/libavcodec/xxan.c
index ec9e9f5..870e934 100644
--- a/libavcodec/xxan.c
+++ b/libavcodec/xxan.c
@@ -251,7 +251,7 @@ static int xan_decode_frame_type0(AVCodecContext *avctx)
if ((ret = xan_decode_chroma(avctx, chroma_off)) != 0)
return ret;
- if (corr_off >= (s->gb.buffer_end - s->gb.buffer_start)) {
+ if (corr_off >= bytestream2_size(&s->gb)) {
av_log(avctx, AV_LOG_WARNING, "Ignoring invalid correction block
position\n");
corr_off = 0;
}
--
1.7.7
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel