[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.50,1.51

Alex Beregszaszi alex at mplayerhq.hu
Fri Sep 13 22:46:01 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv29538

Modified Files:
	vd_ffmpeg.c 
Log Message:
extended par support

Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- vd_ffmpeg.c	6 Sep 2002 22:53:26 -0000	1.50
+++ vd_ffmpeg.c	13 Sep 2002 20:45:58 -0000	1.51
@@ -17,8 +17,8 @@
 	"FFmpeg's libavcodec codec family",
 	"ffmpeg",
 	"A'rpi",
-	"http://ffmpeg.sf.net",
-	"native codecs"
+	"A'rpi, Michael, Alex",
+	"native codecs (http://ffmpeg.sf.net/)"
 };
 
 LIBVD_EXTERN(ffmpeg)
@@ -273,6 +273,11 @@
 	avctx->height != sh->disp_h ||
 	!ctx->vo_inited)
     {
+#if LIBAVCODEC_BUILD >= 4623
+	mp_dbg(MSGT_DECVIDEO, MSGL_DBG2, "aspect_ratio_info: %d\n", avctx->aspect_ratio_info);
+	mp_dbg(MSGT_DECVIDEO, MSGL_DBG2, "par_width: %f\n", (float)avctx->aspected_width);
+	mp_dbg(MSGT_DECVIDEO, MSGL_DBG2, "par_height: %f\n", (float)avctx->aspected_height);
+#endif
 	ctx->last_aspect = avctx->aspect_ratio_info;
 	switch(avctx->aspect_ratio_info)
 	{
@@ -287,6 +292,12 @@
 	    case FF_ASPECT_SQUARE:
 		sh->aspect = 0.0;
 		break;
+#if LIBAVCODEC_BUILD >= 4623
+	    case FF_ASPECT_EXTENDED:
+		if (avctx->aspected_width && avctx->aspected_height)
+		    sh->aspect = (float)avctx->aspected_width/(float)avctx->aspected_height;
+		break;
+#endif
 	}
 	sh->disp_w = avctx->width;
 	sh->disp_h = avctx->height;




More information about the MPlayer-cvslog mailing list