diff options
author | Marton Balint <cus@passwd.hu> | 2013-03-23 02:25:33 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2013-03-23 02:25:33 +0100 |
commit | c46a8c613e752164ed3142209266fd32958dbd95 (patch) | |
tree | cc68581316869d5a5b123916f9549ea48133b23f /ffplay.c | |
parent | dda04a58993828585c932183d877e6b106b1813a (diff) | |
download | ffmpeg-c46a8c613e752164ed3142209266fd32958dbd95.tar.gz |
ffplay: avoid frame data leak on early frame drop
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } } |