Browse Source

Merge two if (got_picture) {} blocks in ffplay.c:get_video_frame().

Stefano Sabatini 14 years ago
parent
commit
d72858f89f
1 changed files with 0 additions and 2 deletions
  1. 0 2
      ffplay.c

+ 0 - 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) {
             *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);