[MPlayer-dev-eng] [PATCH] xvid patch for last dev3api

Marco "elcabesa" Belli elcabesa at inwind.it
Tue Dec 24 11:35:41 CET 2002


another patch due to a change in de-v3-api 

-------------- next part --------------
? out.txt
Index: libmpcodecs/ve_xvid.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_xvid.c,v
retrieving revision 1.11
diff -u -r1.11 ve_xvid.c
--- libmpcodecs/ve_xvid.c	18 Dec 2002 08:10:24 -0000	1.11
+++ libmpcodecs/ve_xvid.c	24 Dec 2002 10:37:14 -0000
@@ -254,6 +254,7 @@
 	fp->enc_frame.general |= XVID_REDUCED;
 #endif
 
+    
     switch (outfmt) {
     case IMGFMT_YV12:
 	fp->enc_frame.colorspace = XVID_CSP_YV12;
@@ -382,6 +383,9 @@
     fp->enc_frame.bitstream = fp->mux->buffer;
     fp->enc_frame.length = -1 /* fp->mux->buffer_size */;
     fp->enc_frame.image = mpi->planes[0];
+#ifdef XVID_API_UNSTABLE
+    fp->enc_frame.stride = mpi->stride[0];
+#endif
 
     // get quantizers & I/P decision from the VBR engine
 #ifdef XVID_API_UNSTABLE
@@ -427,10 +431,10 @@
 		fp->enc_frame.hint.hintlength = 0;
 		fp->enc_frame.hint.rawhints = 0;
 		fp->enc_frame.general |= XVID_HINTEDME_SET;
-	    } 
+	    }
 	    else
 		perror("xvid: hint file read block failure");
-	} 
+	}
 	else
 	    perror("xvid: hint file read failure");
     }
@@ -449,7 +453,7 @@
 	mp_msg(MSGT_MENCODER, MSGL_ERR, "xvid: failure\n");
 	break;
     }
-    
+
     // write output
     mencoder_write_chunk(fp->mux, fp->enc_frame.length, fp->enc_frame.intra==1 ? 0x10 : 0);
 


More information about the MPlayer-dev-eng mailing list