exr: remove superfluous check
authorPaul B Mahol <onemda@gmail.com>
Thu, 21 Feb 2013 19:30:26 +0000 (19:30 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 22 Feb 2013 18:59:55 +0000 (18:59 +0000)
get_header_variable_length() already check for
out of array read and returns 0 in such case.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/exr.c

index 22795a9..18037df 100644 (file)
@@ -143,8 +143,6 @@ static int check_header_variable(AVCodecContext *avctx,
             *variable_buffer_data_size = get_header_variable_length(buf, buf_end);
             if (!*variable_buffer_data_size)
                 av_log(avctx, AV_LOG_ERROR, "Incomplete header\n");
-            if (*variable_buffer_data_size > buf_end - *buf)
-                return -1;
             return 1;
         }
         *buf -= strlen(value_name)+1;