mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-25 12:19:52 +00:00
exr: remove superfluous check
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>
This commit is contained in:
parent
fefd4b0924
commit
7a930f310a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user