From c46a8c613e752164ed3142209266fd32958dbd95 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sat, 23 Mar 2013 02:25:33 +0100 Subject: [PATCH] ffplay: avoid frame data leak on early frame drop Signed-off-by: Marton Balint --- ffplay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffplay.c b/ffplay.c index 535798d62a..fb09dd62ff 100644 --- a/ffplay.c +++ b/ffplay.c @@ -1700,6 +1700,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke is->frame_last_dropped_pos = pkt->pos; is->frame_last_dropped_pts = dpts; is->frame_drops_early++; + av_frame_unref(frame); ret = 0; } }