Message ID | AM4PR0401MB1731DE749072B36E827D63F6F5010@AM4PR0401MB1731.eurprd04.prod.outlook.com |
---|---|
State | New |
Headers | show |
diff --git a/ffmpeg.c b/ffmpeg.c index 3b91710..9cba0d5 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3351,7 +3351,7 @@ static int transcode_init(void) enc_ctx->time_base = (AVRational){ 1, enc_ctx->sample_rate }; break; case AVMEDIA_TYPE_VIDEO: - enc_ctx->time_base = av_inv_q(ost->frame_rate); + enc_ctx->time_base = ist->st->time_base; //av_inv_q(ost->frame_rate); if (!(enc_ctx->time_base.num && enc_ctx->time_base.den)) enc_ctx->time_base = ost->filter->filter->inputs[0]->time_base; if ( av_q2d(enc_ctx->time_base) < 0.001 && video_sync_method != VSYNC_PASSTHROUGH