[FFmpeg-cvslog] fftools/ffmpeg_opt: drop a redundant assignment

Anton Khirnov git at videolan.org
Thu Jul 28 18:01:52 EEST 2022


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Jun 19 19:17:06 2022 +0200| [cb045f7f5a899d9bbc3080573356533d4090d596] | committer: Anton Khirnov

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb045f7f5a899d9bbc3080573356533d4090d596
---

 fftools/ffmpeg_opt.c | 1 -
 1 file changed, 1 deletion(-)

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();



More information about the ffmpeg-cvslog mailing list