diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-07-10 01:20:13 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-07-10 01:28:38 +0000 |
commit | dc0d551b5235a308985bf6f2e8fa85725018f9bf (patch) | |
tree | a14e4cfdf1d187a6249831941f42c07d099d63ea /libavcodec/exr.c | |
parent | 1d890ec8493edabc846aeeff39aba4a260672491 (diff) | |
download | ffmpeg-streaming-dc0d551b5235a308985bf6f2e8fa85725018f9bf.zip ffmpeg-streaming-dc0d551b5235a308985bf6f2e8fa85725018f9bf.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 6388794..113eb88 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; } |