aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-21 12:05:49 +0200
committerAnton Khirnov <anton@khirnov.net>2011-05-21 21:25:58 +0200
commit71cc331cab8d61130048f3003f2ca77cfb94e3f3 (patch)
treedb109aa14bb4bfd085ed2066d812d086f1a6ccd6
parent6204feb160c843320f6001d7e2bb2361c82b90ca (diff)
downloadffmpeg-71cc331cab8d61130048f3003f2ca77cfb94e3f3.tar.gz
ffmpeg: get rid of the -vglobal option.
It's badly documented and does the same thing as -flags global_header, so it's redundant.
-rw-r--r--ffmpeg.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 71be22e05e..0c9545172f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -208,7 +208,6 @@ static float audio_drift_threshold= 0.1;
static int copy_ts= 0;
static int copy_tb;
static int opt_shortest = 0;
-static int video_global_header = 0;
static char *vstats_filename;
static FILE *vstats_file;
static int opt_programid = 0;
@@ -3450,15 +3449,10 @@ static void new_video_stream(AVFormatContext *oc, int file_idx)
if(video_codec_tag)
video_enc->codec_tag= video_codec_tag;
- if( (video_global_header&1)
- || (video_global_header==0 && (oc->oformat->flags & AVFMT_GLOBALHEADER))){
+ if(oc->oformat->flags & AVFMT_GLOBALHEADER) {
video_enc->flags |= CODEC_FLAG_GLOBAL_HEADER;
avcodec_opts[AVMEDIA_TYPE_VIDEO]->flags|= CODEC_FLAG_GLOBAL_HEADER;
}
- if(video_global_header&2){
- video_enc->flags2 |= CODEC_FLAG2_LOCAL_HEADER;
- avcodec_opts[AVMEDIA_TYPE_VIDEO]->flags2|= CODEC_FLAG2_LOCAL_HEADER;
- }
if (video_stream_copy) {
st->stream_copy = 1;
@@ -4310,7 +4304,6 @@ static const OptionDef options[] = {
{ "vsync", HAS_ARG | OPT_INT | OPT_EXPERT, {(void*)&video_sync_method}, "video sync method", "" },
{ "async", HAS_ARG | OPT_INT | OPT_EXPERT, {(void*)&audio_sync_method}, "audio sync method", "" },
{ "adrift_threshold", HAS_ARG | OPT_FLOAT | OPT_EXPERT, {(void*)&audio_drift_threshold}, "audio drift threshold", "threshold" },
- { "vglobal", HAS_ARG | OPT_INT | OPT_EXPERT, {(void*)&video_global_header}, "video global header storage type", "" },
{ "copyts", OPT_BOOL | OPT_EXPERT, {(void*)&copy_ts}, "copy timestamps" },
{ "copytb", OPT_BOOL | OPT_EXPERT, {(void*)&copy_tb}, "copy input stream time base when stream copying" },
{ "shortest", OPT_BOOL | OPT_EXPERT, {(void*)&opt_shortest}, "finish encoding within shortest input" }, //