[FFmpeg-cvslog] ffplay: avoid frame data leak on early frame drop
Marton Balint
git at videolan.org
Sun Mar 24 04:40:33 CET 2013
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Mar 23 02:25:33 2013 +0100| [c46a8c613e752164ed3142209266fd32958dbd95] | committer: Marton Balint
ffplay: avoid frame data leak on early frame drop
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c46a8c613e752164ed3142209266fd32958dbd95
---
ffplay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffplay.c b/ffplay.c
index 535798d..fb09dd6 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;
}
}
More information about the ffmpeg-cvslog
mailing list