summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-06-19 19:17:06 +0200
committerAnton Khirnov <anton@khirnov.net>2022-07-28 16:37:16 +0200
commitcb045f7f5a899d9bbc3080573356533d4090d596 (patch)
tree896f6d7459ef3992b0bc3ca270038c26bc8daebd
parent8384d8403f25af52815b78b578ff0c54e07b8afa (diff)
fftools/ffmpeg_opt: drop a redundant assignment
The codec type will be set by avcodec_alloc_context3(), there is no reason to set it manually.
-rw-r--r--fftools/ffmpeg_opt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index f6e354355b..29bc4fd97f 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -1574,7 +1574,6 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e
av_log(NULL, AV_LOG_ERROR, "Error allocating the encoding context.\n");
exit_program(1);
}
- ost->enc_ctx->codec_type = type;
}
ost->filtered_frame = av_frame_alloc();