Select frames to drop a bit smarter.
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 26 Oct 2007 15:07:57 +0000 (15:07 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 26 Oct 2007 15:07:57 +0000 (15:07 +0000)
modules/codec/ffmpeg/video.c

index ffae3e6..da63707 100644 (file)
@@ -472,7 +472,9 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
         b_drawpicture = 0;
         if( p_sys->i_late_frames < 8 )
         {
-            p_sys->p_context->skip_frame = AVDISCARD_NONKEY;
+            p_sys->p_context->skip_frame =
+                    (p_sys->i_skip_frame <= AVDISCARD_BIDIR) ?
+                    AVDISCARD_BIDIR : p_sys->i_skip_frame;
         }
         else
         {