From 3f991325b5ef472cf51b7d8433a2380bef2c94ff Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 24 Aug 2021 19:09:15 +0200 Subject: [PATCH] avformat/utils: Remove obsolete todo Also initialize the AVCodecContexts directly. Signed-off-by: Andreas Rheinhardt --- 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; /*