[FFmpeg-devel] [PATCH 09/25] avformat/utils: Remove obsolete todo

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Fri Aug 27 17:27:09 EEST 2021


Also initialize the AVCodecContexts directly.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavformat/utils.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 7d7fd16257..ad8e26d3a3 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -5522,12 +5522,8 @@ int avformat_transfer_internal_stream_timing_info(const AVOutputFormat *ofmt,
                                                   AVStream *ost, const AVStream *ist,
                                                   enum AVTimebaseSource copy_tb)
 {
-    //TODO: use [io]st->internal->avctx
-    const AVCodecContext *dec_ctx;
-    AVCodecContext       *enc_ctx;
-
-    dec_ctx = ist->internal->avctx;
-    enc_ctx = ost->internal->avctx;
+    const AVCodecContext *const dec_ctx = ist->internal->avctx;
+    AVCodecContext       *const enc_ctx = ost->internal->avctx;
 
     enc_ctx->time_base = ist->time_base;
     /*
-- 
2.30.2



More information about the ffmpeg-devel mailing list