summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--output_example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output_example.c b/output_example.c
index 6cd1b34080..82df06b8bf 100644
--- a/output_example.c
+++ b/output_example.c
@@ -224,7 +224,7 @@ static AVStream *add_video_stream(AVFormatContext *oc, int codec_id)
c->mb_decision=2;
}
// some formats want stream headers to be separate
- if(!strcmp(oc->oformat->name, "mp4") || !strcmp(oc->oformat->name, "mov") || !strcmp(oc->oformat->name, "3gp"))
+ if(oc->oformat->flags & AVFMT_GLOBALHEADER)
c->flags |= CODEC_FLAG_GLOBAL_HEADER;
return st;