[FFmpeg-cvslog] xxan: use bytestream2_size()
Paul B Mahol
git at videolan.org
Wed Mar 21 03:26:44 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Mar 21 00:10:21 2012 +0000| [0acacd23d458cf4ce0464fbfe96931156a78fcc8] | committer: Michael Niedermayer
xxan: use bytestream2_size()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0acacd23d458cf4ce0464fbfe96931156a78fcc8
---
libavcodec/xxan.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/xxan.c b/libavcodec/xxan.c
index ebb88ae..2662158 100644
--- a/libavcodec/xxan.c
+++ b/libavcodec/xxan.c
@@ -257,7 +257,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;
}
More information about the ffmpeg-cvslog
mailing list