avformat/utils: Remove obsolete todo

Also initialize the AVCodecContexts directly.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/365/head
Andreas Rheinhardt 3 years ago
parent f265374bc0
commit 3f991325b5
  1. 8
      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;
/*

Loading…
Cancel
Save