mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-16 11:54:09 +02:00
xxan: use bytestream2_size()
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ff05fd6249
commit
0acacd23d4
@ -257,7 +257,7 @@ static int xan_decode_frame_type0(AVCodecContext *avctx)
|
|||||||
if ((ret = xan_decode_chroma(avctx, chroma_off)) != 0)
|
if ((ret = xan_decode_chroma(avctx, chroma_off)) != 0)
|
||||||
return ret;
|
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");
|
av_log(avctx, AV_LOG_WARNING, "Ignoring invalid correction block position\n");
|
||||||
corr_off = 0;
|
corr_off = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user