diff mbox series

[FFmpeg-devel,11/27] fftools/ffmpeg_opt: drop a redundant assignment

Message ID 20220723140952.31814-11-anton@khirnov.net
State Accepted
Commit cb045f7f5a899d9bbc3080573356533d4090d596
Headers show
Series [FFmpeg-devel,01/27] fftools/ffmpeg: replace AVFrame.pkt_duration with duration | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov July 23, 2022, 2:09 p.m. UTC
The codec type will be set by avcodec_alloc_context3(), there is no
reason to set it manually.
 fftools/ffmpeg_opt.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series


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");
-        ost->enc_ctx->codec_type = type;
     ost->filtered_frame = av_frame_alloc();