From f3c24b3c8bb676c089efe46259f2a31fca0a0bcd Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 20 Mar 2023 17:22:49 +0100 Subject: Remove unused and invalid flags --- src/main.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') 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; -- cgit v1.2.3