[FFmpeg-cvslog] avformat/utils: Remove obsolete todo

Andreas Rheinhardt git at videolan.org
Tue Aug 31 18:43:34 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Aug 24 19:09:15 2021 +0200| [3f991325b5ef472cf51b7d8433a2380bef2c94ff] | committer: Andreas Rheinhardt

avformat/utils: Remove obsolete todo

Also initialize the AVCodecContexts directly.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 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;
     /*



More information about the ffmpeg-cvslog mailing list