diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-24 19:09:15 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-30 16:12:22 +0200 |
commit | 3f991325b5ef472cf51b7d8433a2380bef2c94ff (patch) | |
tree | 23d74f83a02a6c2a78be564b8c9f6c53a9856c25 | |
parent | f265374bc0b234fa26b744945d55981e8c6062d5 (diff) | |
download | ffmpeg-3f991325b5ef472cf51b7d8433a2380bef2c94ff.tar.gz |
avformat/utils: Remove obsolete todo
Also initialize the AVCodecContexts directly.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/utils.c | 8 |
1 files 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; /* |