Commit 80c0020a authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/ffmpeg/video.c: disabled direct rendering when hurry-up is
enabled. ffmpeg doesn't properly release old pictures when frames are skipped.
parent 7bb72c58
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* video.c: video decoder using ffmpeg library * video.c: video decoder using ffmpeg library
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * 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> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com> * Gildas Bazin <gbazin@netcourrier.com>
...@@ -314,6 +314,9 @@ int E_( InitThread_Video )( vdec_thread_t *p_vdec ) ...@@ -314,6 +314,9 @@ int E_( InitThread_Video )( vdec_thread_t *p_vdec )
} }
#endif #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 ) if( p_vdec->b_direct_rendering )
{ {
msg_Dbg( p_vdec->p_fifo, "using direct rendering" ); msg_Dbg( p_vdec->p_fifo, "using direct rendering" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment