diff --git a/libavformat/mov.c b/libavformat/mov.c index 83bf9fa8d4..786994699e 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -11662,7 +11662,7 @@ static int mov_parse_heif_layered_video_tmap(AVFormatContext *s, const HEIFGroup payload = av_malloc(tmap->item->extent_length); if (!payload) { - return AVERROR(ENOMEM); + err = AVERROR(ENOMEM); goto fail; }