[FFmpeg-cvslog] exr: use buf_size instead of recalculating same value
Paul B Mahol
git at videolan.org
Tue Jul 10 04:24:41 CEST 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Jul 10 01:20:13 2012 +0000| [dc0d551b5235a308985bf6f2e8fa85725018f9bf] | committer: Paul B Mahol
exr: use buf_size instead of recalculating same value
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc0d551b5235a308985bf6f2e8fa85725018f9bf
---
libavcodec/exr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
More information about the ffmpeg-cvslog
mailing list