[FFmpeg-devel] [PATCH] Merge two if (got_picture) {} blocks in ffplay.c:get_video_frame().

Stefano Sabatini stefano.sabatini-lala
Sun Jan 16 18:25:53 CET 2011


---
 ffplay.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index b2a1d45..2a2e823 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);
-- 
1.7.2.3




More information about the ffmpeg-devel mailing list