[FFmpeg-cvslog] ffplay: fix memleak if avfilter is disabled
alexandru_mg3
git at videolan.org
Thu May 5 02:29:57 CEST 2011
ffmpeg | branch: master | alexandru_mg3 <alexandru_mg3_NOSPAM at yahoo.com> | Thu May 5 01:42:53 2011 +0200| [b93e12fdf4392570ce87143fb36c4f2f1d1c8ba1] | committer: Michael Niedermayer
ffplay: fix memleak if avfilter is disabled
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b93e12fdf4392570ce87143fb36c4f2f1d1c8ba1
---
ffplay.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/ffplay.c b/ffplay.c
index 303f713..7574b51 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1831,6 +1831,7 @@ static int video_thread(void *arg)
#else
ret = get_video_frame(is, frame, &pts_int, &pkt);
pos = pkt.pos;
+ av_free_packet(&pkt);
#endif
if (ret < 0) goto the_end;
@@ -1841,9 +1842,7 @@ static int video_thread(void *arg)
pts = pts_int*av_q2d(is->video_st->time_base);
ret = queue_picture(is, frame, pts, pos);
-#if !CONFIG_AVFILTER
- av_free_packet(&pkt);
-#endif
+
if (ret < 0)
goto the_end;
More information about the ffmpeg-cvslog
mailing list