[Libav-user] What happens if AV_CODEC_FLAG_GLOBAL_HEADER is set when not needed.
hivanov.ffmailing at gmail.com
Tue Jun 19 18:42:45 EEST 2018
I am looking into encoding once but writing to multiple files with
For some formats the encoder must be configured with the
AV_CODEC_FLAG_GLOBAL_HEADER flag active, like this:
if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER)
enc_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
My problem comes when having to encode for two formats, one that needs the
flag and one that does not.
I know that not setting the flags for the formats that need it, is not an
option. Since this produced files not playable by most players.
What happens when the flags is set for formats that does not need it?
Will forcing the flag to be always true fix my problem?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user