aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-24 04:35:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-24 04:35:44 +0100
commit01a334e8857d79a37a252d0c9831fde134dcb613 (patch)
treecc54e86931064d25171aeeeb7c7b7f5c17320073
parent8e062fd16988ee046688d932df9b69aec9573285 (diff)
parentc46a8c613e752164ed3142209266fd32958dbd95 (diff)
downloadffmpeg-01a334e8857d79a37a252d0c9831fde134dcb613.tar.gz
Merge remote-tracking branch 'cus/stable'
* cus/stable: ffplay: avoid frame data leak on early frame drop Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffplay.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}