If too much frames have been dropped, then only decode I frames for a while and see...
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 31 Aug 2007 08:51:53 +0000 (08:51 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 31 Aug 2007 08:51:53 +0000 (08:51 +0000)
modules/codec/ffmpeg/video.c

index 0179f19..8c3b3a8 100644 (file)
@@ -468,15 +468,12 @@ 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 =
-                    (p_sys->i_skip_frame <= AVDISCARD_BIDIR) ?
-                    AVDISCARD_BIDIR : p_sys->i_skip_frame;
+            p_sys->p_context->skip_frame = AVDISCARD_NONKEY;
         }
         else
         {
             /* picture too late, won't decode
              * but break picture until a new I, and for mpeg4 ...*/
-            p_sys->p_context->skip_frame = AVDISCARD_NONKEY;
             p_sys->i_late_frames--; /* needed else it will never be decrease */
             block_Release( p_block );
             p_sys->i_buffer = 0;