Permalink
Browse files

ffplay: avoid frame data leak on early frame drop

Signed-off-by: Marton Balint <cus@passwd.hu>
  • Loading branch information...
1 parent dda04a5 commit c46a8c613e752164ed3142209266fd32958dbd95 @cus committed Mar 23, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 ffplay.c
View
@@ -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;
}
}

0 comments on commit c46a8c6

Please sign in to comment.