From dc0d551b5235a308985bf6f2e8fa85725018f9bf Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 10 Jul 2012 01:20:13 +0000 Subject: [PATCH] exr: use buf_size instead of recalculating same value Signed-off-by: Paul B Mahol --- libavcodec/exr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 6388794b2b..113eb88082 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -173,7 +173,7 @@ static int decode_frame(AVCodecContext *avctx, s->channel_offsets[3] = -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"); return -1; }