diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 22795a9b5e..18037df5ba 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -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;