diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-03-21 00:10:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-21 03:09:04 +0100 |
commit | 0acacd23d458cf4ce0464fbfe96931156a78fcc8 (patch) | |
tree | 01c1c5073f573c333c582e59f73424732ae850a1 /libavcodec/xxan.c | |
parent | ff05fd6249e27bfaa850f3e978670b826ab7d282 (diff) | |
download | ffmpeg-0acacd23d458cf4ce0464fbfe96931156a78fcc8.tar.gz |
xxan: use bytestream2_size()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/xxan.c')
-rw-r--r-- | libavcodec/xxan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xxan.c b/libavcodec/xxan.c index ebb88aead4..26621588c4 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; } |