X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fapetag.c;h=454c6c688bd2b0c7fde6eead30cd7799d1705a0c;hb=e3156fa7c2b85e9b8d1dfe6a92b0920624c0e65c;hp=4e19f49bf170fbc48cfff144781f03536b8be569;hpb=67ce9e0463e170179ece4abc33be716282a0202b;p=ffmpeg diff --git a/libavformat/apetag.c b/libavformat/apetag.c index 4e19f49bf17..454c6c688bd 100644 --- a/libavformat/apetag.c +++ b/libavformat/apetag.c @@ -96,8 +96,8 @@ static int ape_tag_read_field(AVFormatContext *s) st->attached_pic.stream_index = st->index; st->attached_pic.flags |= AV_PKT_FLAG_KEY; } else { - if (ff_get_extradata(s, st->codecpar, s->pb, size) < 0) - return AVERROR(ENOMEM); + if ((ret = ff_get_extradata(s, st->codecpar, s->pb, size)) < 0) + return ret; st->codecpar->codec_type = AVMEDIA_TYPE_ATTACHMENT; } } else {