summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-10 03:14:39 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-10 22:25:34 +0200
commitd91756c1b5fa70095e55d34ded6d6085bfd56bd4 (patch)
tree24c152fdea1f5952e53fec3adcb00d304394b9c4 /libavfilter
parent41e0058b48fc192aaa7b97a58636f4784b93b6fd (diff)
avfilter/src_movie: Fix leak of packet upon error
If allocating the AVFrame to contain a decoded frame fails, the AVPacket containing the data intended to be decoded leaks. This commit fixes this. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/src_movie.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index 75ac3bfaf6..d83cb6d1e4 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -344,6 +344,7 @@ static av_cold void movie_uninit(AVFilterContext *ctx)
}
av_freep(&movie->st);
av_freep(&movie->out_index);
+ av_packet_unref(&movie->pkt);
if (movie->format_ctx)
avformat_close_input(&movie->format_ctx);
}