changeset 23956:a0d1fe96bdb8

get rid of this idiotic i_certify_that_my_video_stream_does_not_use_b_frames muxer_lavf can now generate correct files with b frames as long as the timestamps provided to it are correct (they should be with lavc encoding, expect trouble with stream copy though)
author michael
date Tue, 31 Jul 2007 17:28:47 +0000
parents c4c4712cebae
children 74eb6825d332
files libmpdemux/muxer_lavf.c
diffstat 1 files changed, 1 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_lavf.c	Tue Jul 31 17:24:53 2007 +0000
+++ b/libmpdemux/muxer_lavf.c	Tue Jul 31 17:28:47 2007 +0000
@@ -50,7 +50,6 @@
 } muxer_stream_priv_t;
 
 static char *conf_format = NULL;
-static int conf_allow_lavf = 0;
 static int mux_rate= 0;
 static int mux_packet_size= 0;
 static float mux_preload= 0.5;
@@ -58,7 +57,6 @@
 
 m_option_t lavfopts_conf[] = {
 	{"format", &(conf_format), CONF_TYPE_STRING, 0, 0, 0, NULL},
-	{"i_certify_that_my_video_stream_does_not_use_b_frames", &conf_allow_lavf, CONF_TYPE_FLAG, 0, 0, 1, NULL},
 	{"muxrate", &mux_rate, CONF_TYPE_INT, CONF_RANGE, 0, INT_MAX, NULL},
 	{"packetsize", &mux_packet_size, CONF_TYPE_INT, CONF_RANGE, 0, INT_MAX, NULL},
 	{"preload", &mux_preload, CONF_TYPE_FLOAT, CONF_RANGE, 0, INT_MAX, NULL},
@@ -344,22 +342,11 @@
 	}
 
 	mp_msg(MSGT_MUXER, MSGL_WARN, "** MUXER_LAVF *****************************************************************\n");
-	if (!conf_allow_lavf) {
-		mp_msg(MSGT_MUXER, MSGL_FATAL,
-"If you wish to use libavformat muxing, you must ensure that your video stream\n"
-"does not contain B frames (out of order decoding) and specify:\n"
-"    -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames\n"
-"on the command line.\n");
-	} else {
-		mp_msg(MSGT_MUXER, MSGL_WARN,
-"You have certified that your video stream does not contain B frames.\n");
-	}
 	mp_msg(MSGT_MUXER, MSGL_WARN,
-"REMEMBER: MEncoder's libavformat muxing is presently broken and will generate\n"
+"REMEMBER: MEncoder's libavformat muxing is presently broken and can generate\n"
 "INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer\n"
 "will play these INCORRECT files as if nothing were wrong!\n"
 "*******************************************************************************\n");
-	if (!conf_allow_lavf) return 0;
 	
 	priv = (muxer_priv_t *) calloc(1, sizeof(muxer_priv_t));
 	if(priv == NULL)