[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.123,1.124
Ivan Kalvachev CVS
syncmail at mplayerhq.hu
Tue Mar 16 16:34:57 CET 2004
CVS change done by Ivan Kalvachev CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv3710
Modified Files:
vd_ffmpeg.c
Log Message:
use flag for XvMC codec recognition and enable dr1 for fixed version of lavc
Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- vd_ffmpeg.c 1 Mar 2004 14:58:20 -0000 1.123
+++ vd_ffmpeg.c 16 Mar 2004 15:34:55 -0000 1.124
@@ -194,8 +194,13 @@
#endif
#ifdef HAVE_XVMC
+
+#ifdef CODEC_CAP_HWACCEL
+ if(lavc_codec->capabilities & CODEC_CAP_HWACCEL){
+#else
if(lavc_codec->id == CODEC_ID_MPEG2VIDEO_XVMC){
- printf("vd_ffmpeg: XVMC accelerated MPEG2\n");
+#endif
+ printf("vd_ffmpeg: XVMC accelerated codec\n");
assert(ctx->do_dr1);//these are must to!
assert(ctx->do_slices); //it is (vo_)ffmpeg bug if this fails
avctx->flags|= CODEC_FLAG_EMU_EDGE;//do i need that??!!
@@ -674,10 +679,15 @@
if(len<=0) return NULL; // skipped frame
+#if LIBAVCODEC_BUILD < 4707
+
#ifdef HAVE_XVMC
-// in fact if(!dr1) should be the only condition, but this way we hide an
-//ffmpeg interlace (mpeg2) bug. use -noslices to avoid it.
- if( !avctx->xvmc_acceleration )// && (!dr1) )
+ if( !avctx->xvmc_acceleration )
+#endif
+
+#else
+//ffmpeg interlace (mpeg2) bug have been fixed. no need of -noslices
+ if (!dr1)
#endif
avctx->draw_horiz_band=NULL;
avctx->opaque=sh;
More information about the MPlayer-cvslog
mailing list