[Mplayer-cvslog] CVS: main cfg-common.h, 1.129, 1.130 cfg-mencoder.h, 1.81, 1.82 mencoder.c, 1.237, 1.238
Tobias Diedrich CVS
syncmail at mplayerhq.hu
Wed Mar 24 16:16:38 CET 2004
CVS change done by Tobias Diedrich CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv31245
Modified Files:
cfg-common.h cfg-mencoder.h mencoder.c
Log Message:
Use aspect from encoder for AVI vprp header
Index: cfg-common.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-common.h,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -r1.129 -r1.130
--- cfg-common.h 22 Mar 2004 01:42:43 -0000 1.129
+++ cfg-common.h 24 Mar 2004 15:16:36 -0000 1.130
@@ -119,9 +119,6 @@
{"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
#endif
- {"useaviaspect", &avi_use_vprp_aspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
- {"nouseaviaspect", &avi_use_vprp_aspect, CONF_TYPE_FLAG, 0, 1, 0, NULL},
-
// ------------------------- a-v sync options --------------------
// AVI specific: A-V sync mode (bps vs. interleaving)
@@ -319,8 +316,6 @@
extern int ts_keep_broken;
extern off_t ts_probe;
-extern int avi_use_vprp_aspect; /* defined in aviheader.c */
-
#include "libmpdemux/tv.h"
#ifdef USE_EDL
Index: cfg-mencoder.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mencoder.h,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- cfg-mencoder.h 22 Mar 2004 01:42:43 -0000 1.81
+++ cfg-mencoder.h 24 Mar 2004 15:16:36 -0000 1.82
@@ -160,6 +160,8 @@
{NULL, NULL, 0, 0, 0, 0, NULL}
};
+extern float avi_aspect_override; /* defined in libmpdemux/muxer_avi.c */
+
m_option_t mencoder_opts[]={
/* name, pointer, type, flags, min, max */
@@ -192,6 +194,9 @@
// override FOURCC in output file
{"ffourcc", &force_fourcc, CONF_TYPE_STRING, 0, 4, 4, NULL},
+ // override avi aspect autodetection
+ {"force-avi-aspect", &avi_aspect_override, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL},
+
{"pass", "The -pass option is obsolete. Use -lavcopts vpass=n or -divx4opts pass=n!\nRTFM!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
{"passlogfile", &passtmpfile, CONF_TYPE_STRING, 0, 0, 0, NULL},
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -r1.237 -r1.238
--- mencoder.c 17 Mar 2004 14:50:36 -0000 1.237
+++ mencoder.c 24 Mar 2004 15:16:36 -0000 1.238
@@ -663,12 +663,6 @@
mux_v->bih->biBitCount=24; // FIXME!!!
mux_v->bih->biSizeImage=mux_v->bih->biWidth*mux_v->bih->biHeight*(mux_v->bih->biBitCount/8);
}
- /*
- * FIXME: with -ovc copy we don't get aspect ratio information
- * from the source stream.
- */
- if(movie_aspect>-1.0) sh_video->aspect = movie_aspect;
-
printf("videocodec: framecopy (%dx%d %dbpp fourcc=%x)\n",
mux_v->bih->biWidth, mux_v->bih->biHeight,
mux_v->bih->biBitCount, mux_v->bih->biCompression);
More information about the MPlayer-cvslog
mailing list