[Mplayer-cvslog] CVS: main dec_video.c,1.5,1.6

Arpi of Ize arpi at mplayer.dev.hu
Fri Jul 20 02:00:11 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv21700

Modified Files:
	dec_video.c 
Log Message:
fixed shmem size, and now compiles without divx4linux too :)

Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_video.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- dec_video.c	19 Jul 2001 22:39:52 -0000	1.5
+++ dec_video.c	20 Jul 2001 00:00:08 -0000	1.6
@@ -176,6 +176,10 @@
    break;
  }
  case 7: {  // DivX4Linux
+#ifndef NEW_DECORE
+   fprintf(stderr,"MPlayer was compiled WITHOUT DivX4Linux (libdivxdecore.so) support!\n");
+   return 0; //exit(1);
+#else
    if(verbose) printf("DivX4Linux video codec\n");
    { DEC_PARAM dec_param;
      DEC_SET dec_set;
@@ -199,11 +203,12 @@
 	decore(0x123, DEC_OPT_INIT, &dec_param, NULL);
 	dec_set.postproc_level = divx_quality;
 	decore(0x123, DEC_OPT_SETPP, &dec_set, NULL);
-//	sh_video->our_out_buffer = shmem_alloc(((bits*dec_param.x_dim+7)/8)*dec_param.y_dim);
-	sh_video->our_out_buffer = shmem_alloc(dec_param.x_dim*dec_param.y_dim*5);
+	sh_video->our_out_buffer = shmem_alloc(((bits*dec_param.x_dim+7)/8)*dec_param.y_dim);
+//	sh_video->our_out_buffer = shmem_alloc(dec_param.x_dim*dec_param.y_dim*5);
    }
    if(verbose) printf("INFO: OpenDivX video codec init OK!\n");
    break;
+#endif
  }
  case 5: {  // FFmpeg's libavcodec
 #ifndef USE_LIBAVCODEC
@@ -307,6 +312,7 @@
 
     break;
   }
+#ifdef NEW_DECORE
   case 7: {
     // DivX4Linux
     unsigned int t=GetTimer();
@@ -342,6 +348,7 @@
 
     break;
   }
+#endif
 #ifdef USE_DIRECTSHOW
   case 4: {        // W32/DirectShow
     unsigned int t=GetTimer();




More information about the MPlayer-cvslog mailing list