]> git.sesse.net Git - vlc/commitdiff
* modules/codec/ffmpeg/video.c: disabled direct rendering when hurry-up is
authorGildas Bazin <gbazin@videolan.org>
Thu, 19 Jun 2003 21:09:27 +0000 (21:09 +0000)
committerGildas Bazin <gbazin@videolan.org>
Thu, 19 Jun 2003 21:09:27 +0000 (21:09 +0000)
enabled. ffmpeg doesn't properly release old pictures when frames are skipped.

modules/codec/ffmpeg/video.c

index 0cc770210fbefc38533193f64f1125c12a4e0198..9bb46fe14015cc1c745ae6b7b057496edcf258b0 100644 (file)
@@ -2,7 +2,7 @@
  * video.c: video decoder using ffmpeg library
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: video.c,v 1.31 2003/06/16 20:49:12 gbazin Exp $
+ * $Id: video.c,v 1.32 2003/06/19 21:09:27 gbazin Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Gildas Bazin <gbazin@netcourrier.com>
@@ -314,6 +314,9 @@ int E_( InitThread_Video )( vdec_thread_t *p_vdec )
     }
 #endif
 
+    /* ffmpeg doesn't properly release old pictures when frames are skipped */
+    if( p_vdec->b_hurry_up ) p_vdec->b_direct_rendering = 0;
+
     if( p_vdec->b_direct_rendering )
     {
         msg_Dbg( p_vdec->p_fifo, "using direct rendering" );