Commit c46a8c61 authored by Marton Balint's avatar Marton Balint

ffplay: avoid frame data leak on early frame drop

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent dda04a58
...@@ -1700,6 +1700,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke ...@@ -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_pos = pkt->pos;
is->frame_last_dropped_pts = dpts; is->frame_last_dropped_pts = dpts;
is->frame_drops_early++; is->frame_drops_early++;
av_frame_unref(frame);
ret = 0; ret = 0;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment