diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-03-20 17:22:49 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-03-26 19:04:51 +0200 |
commit | f3c24b3c8bb676c089efe46259f2a31fca0a0bcd (patch) | |
tree | 51d185e22c69a086ba43324ce49f2d77335f7eac /src/main.cpp | |
parent | d4b8833fdd7fee535917248540aeed9d8ca1337c (diff) |
Remove unused and invalid flags
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3fd8e6d..a2e706f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -789,9 +789,6 @@ static void save_replay_async(AVCodecContext *video_codec_context, int video_str AVFormatContext *av_format_context; avformat_alloc_output_context2(&av_format_context, nullptr, container_format, nullptr); - av_format_context->flags |= AVFMT_FLAG_GENPTS; - av_format_context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; - AVStream *video_stream = create_stream(av_format_context, video_codec_context); avcodec_parameters_from_context(video_stream->codecpar, video_codec_context); @@ -1400,8 +1397,6 @@ int main(int argc, char **argv) { return 1; } - av_format_context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; - av_format_context->flags |= AVFMT_FLAG_GENPTS; const AVOutputFormat *output_format = av_format_context->oformat; std::string file_extension = output_format->extensions; |