mirror of https://git.ffmpeg.org/ffmpeg.git
Merge two if (got_picture) {} blocks in ffplay.c:get_video_frame().
This commit is contained in:
parent
db323491cd
commit
d72858f89f
2
ffplay.c
2
ffplay.c
|
@ -1588,9 +1588,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke
|
||||||
if (*pts == AV_NOPTS_VALUE) {
|
if (*pts == AV_NOPTS_VALUE) {
|
||||||
*pts = 0;
|
*pts = 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (got_picture){
|
|
||||||
is->skip_frames_index += 1;
|
is->skip_frames_index += 1;
|
||||||
if(is->skip_frames_index >= is->skip_frames){
|
if(is->skip_frames_index >= is->skip_frames){
|
||||||
is->skip_frames_index -= FFMAX(is->skip_frames, 1.0);
|
is->skip_frames_index -= FFMAX(is->skip_frames, 1.0);
|
||||||
|
|
Loading…
Reference in New Issue