[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.22,1.23
Alex Beregszaszi
alex at mplayerhq.hu
Sun Jul 7 18:12:32 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv1738
Modified Files:
vd_ffmpeg.c
Log Message:
support avcontext based quant_store export
Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- vd_ffmpeg.c 9 Jun 2002 13:52:13 -0000 1.22
+++ vd_ffmpeg.c 7 Jul 2002 16:12:30 -0000 1.23
@@ -289,7 +289,15 @@
mpi->stride[2]*=2;
}
-#ifdef FF_POSTPROCESS
+/* to comfirm with newer lavc style */
+#if !defined(FF_POSTPROCESS) && (LIBAVCODEC_BUILD > 4612)
+ mpi->qscale=avctx->quant_store;
+#if LIBAVCODEC_BUILD > 4613
+ mpi->qstride=avctx->qstride;
+#else
+ mpi->qstride=MBC+1;
+#endif
+#else ifdef FF_POSTPROCESS
mpi->qscale=&quant_store[0][0];
mpi->qstride=MBC+1;
#endif
More information about the MPlayer-cvslog
mailing list