|
@@ -110,6 +110,7 @@ int ff_flac_parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size) |
|
|
if (!(data = av_buffer_alloc(len + FF_INPUT_BUFFER_PADDING_SIZE))) { |
|
|
if (!(data = av_buffer_alloc(len + FF_INPUT_BUFFER_PADDING_SIZE))) { |
|
|
RETURN_ERROR(AVERROR(ENOMEM)); |
|
|
RETURN_ERROR(AVERROR(ENOMEM)); |
|
|
} |
|
|
} |
|
|
|
|
|
memset(data->data + len, 0, FF_INPUT_BUFFER_PADDING_SIZE); |
|
|
if (avio_read(pb, data->data, len) != len) { |
|
|
if (avio_read(pb, data->data, len) != len) { |
|
|
av_log(s, AV_LOG_ERROR, "Error reading attached picture data.\n"); |
|
|
av_log(s, AV_LOG_ERROR, "Error reading attached picture data.\n"); |
|
|
if (s->error_recognition & AV_EF_EXPLODE) |
|
|
if (s->error_recognition & AV_EF_EXPLODE) |
|
|