]> git.sesse.net Git - vlc/commitdiff
* modules/codec/ffmpeg/*: fix for ffmpeg direct rendering. Direct rendering is now
authorGildas Bazin <gbazin@videolan.org>
Sat, 14 Jun 2003 15:43:39 +0000 (15:43 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sat, 14 Jun 2003 15:43:39 +0000 (15:43 +0000)
enabled by default.

modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/video.c

index 2e8f745373f818b0c0c6ba7d9d3f3c102a3f2d85..2d3f492b314a5a05984c6f12dc58054ec08f85c7 100644 (file)
@@ -2,7 +2,7 @@
  * ffmpeg.c: video decoder using ffmpeg library
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: ffmpeg.c,v 1.41 2003/06/06 02:23:30 hartman Exp $
+ * $Id: ffmpeg.c,v 1.42 2003/06/14 15:43:39 gbazin Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -187,7 +187,7 @@ vlc_module_begin();
     set_callbacks( OpenDecoder, NULL );
     set_description( _("ffmpeg audio/video decoder((MS)MPEG4,SVQ1,H263,WMV,WMA)") );
 
-    add_bool( "ffmpeg-dr", 0, NULL, DR_TEXT, DR_TEXT, VLC_TRUE );
+    add_bool( "ffmpeg-dr", 1, NULL, DR_TEXT, DR_TEXT, VLC_TRUE );
     add_integer ( "ffmpeg-error-resilience", -1, NULL, ERROR_TEXT, ERROR_LONGTEXT, VLC_TRUE );
     add_integer ( "ffmpeg-workaround-bugs", 1, NULL, BUGS_TEXT, BUGS_LONGTEXT, VLC_FALSE );
     add_bool( "ffmpeg-hurry-up", 0, NULL, HURRYUP_TEXT, HURRYUP_LONGTEXT, VLC_FALSE );
index f348a30c8c17ef9f980697018c6f0f1bb11d835b..66bef662711227596e494b9f84b5dec67cd72a14 100644 (file)
@@ -2,7 +2,7 @@
  * video.c: video decoder using ffmpeg library
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: video.c,v 1.28 2003/05/10 18:16:44 fenrir Exp $
+ * $Id: video.c,v 1.29 2003/06/14 15:43:39 gbazin Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Gildas Bazin <gbazin@netcourrier.com>
@@ -266,7 +266,8 @@ int E_( InitThread_Video )( vdec_thread_t *p_vdec )
 
     if( config_GetInt( p_vdec->p_fifo, "ffmpeg-dr" ) &&
         p_vdec->p_codec->capabilities & CODEC_CAP_DR1 &&
-        ffmpeg_PixFmtToChroma( p_vdec->p_context->pix_fmt ) )
+        ffmpeg_PixFmtToChroma( p_vdec->p_context->pix_fmt ) &&
+        !(p_vdec->p_context->width % 16) && !(p_vdec->p_context->height % 16) )
     {
         /* FIXME: some codecs set pix_fmt only after a frame
          * has been decoded. */