From d72858f89f7062b04968cf28f3661ebe1ba398f8 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 16 Jan 2011 18:17:00 +0100 Subject: [PATCH] Merge two if (got_picture) {} blocks in ffplay.c:get_video_frame(). --- ffplay.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ffplay.c b/ffplay.c index b2a1d456c9..2a2e8239e3 100644 --- a/ffplay.c +++ b/ffplay.c @@ -1588,9 +1588,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke if (*pts == AV_NOPTS_VALUE) { *pts = 0; } - } - if (got_picture){ is->skip_frames_index += 1; if(is->skip_frames_index >= is->skip_frames){ is->skip_frames_index -= FFMAX(is->skip_frames, 1.0);