X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fflac_picture.c;h=7bd98258e4f7974599115868db5998daba605277;hb=1ca042a14b9347d191eb4abf8dc74ac48db272fd;hp=669fd2e7825f973802d01b29d4307bb601f80222;hpb=a99f0ad194fd48ae8afd9264595b7ca6f45e2a8a;p=ffmpeg diff --git a/libavformat/flac_picture.c b/libavformat/flac_picture.c index 669fd2e7825..7bd98258e4f 100644 --- a/libavformat/flac_picture.c +++ b/libavformat/flac_picture.c @@ -108,10 +108,10 @@ int ff_flac_parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size) ret = AVERROR_INVALIDDATA; goto fail; } - if (!(data = av_buffer_alloc(len + FF_INPUT_BUFFER_PADDING_SIZE))) { + if (!(data = av_buffer_alloc(len + AV_INPUT_BUFFER_PADDING_SIZE))) { RETURN_ERROR(AVERROR(ENOMEM)); } - memset(data->data + len, 0, FF_INPUT_BUFFER_PADDING_SIZE); + memset(data->data + len, 0, AV_INPUT_BUFFER_PADDING_SIZE); if (avio_read(pb, data->data, len) != len) { av_log(s, AV_LOG_ERROR, "Error reading attached picture data.\n"); if (s->error_recognition & AV_EF_EXPLODE)