Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-07-10 05:20:13 +0400
committerPaul B Mahol <onemda@gmail.com>2012-07-10 05:28:38 +0400
commitdc0d551b5235a308985bf6f2e8fa85725018f9bf (patch)
treea14e4cfdf1d187a6249831941f42c07d099d63ea /libavcodec/exr.c
parent1d890ec8493edabc846aeeff39aba4a260672491 (diff)
exr: use buf_size instead of recalculating same value
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r--libavcodec/exr.c2
1 files changed, 1 insertions, 1 deletions
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;
}