mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-24 14:22:14 +00:00
exr: use buf_size instead of recalculating same value
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
1d890ec849
commit
dc0d551b52
@ -173,7 +173,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
s->channel_offsets[3] = -1;
|
s->channel_offsets[3] = -1;
|
||||||
s->bits_per_color_id = -1;
|
s->bits_per_color_id = -1;
|
||||||
|
|
||||||
if (buf_end - buf < 10) {
|
if (buf_size < 10) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Too short header to parse\n");
|
av_log(avctx, AV_LOG_ERROR, "Too short header to parse\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user