You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge remote-tracking branch 'cus/stable'
* cus/stable: ffplay: avoid frame data leak on early frame drop Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
1
ffplay.c
1
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_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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user