mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-19 13:30:03 +01:00
ffmpeg: remove common factors from copied timebase
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
3
ffmpeg.c
3
ffmpeg.c
@@ -2879,7 +2879,8 @@ static int transcode_init(void)
|
|||||||
}
|
}
|
||||||
ost->st->codec->codec= ost->enc_ctx->codec;
|
ost->st->codec->codec= ost->enc_ctx->codec;
|
||||||
|
|
||||||
ost->st->time_base = ost->enc_ctx->time_base;
|
// copy timebase while removing common factors
|
||||||
|
ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* init input streams */
|
/* init input streams */
|
||||||
|
|||||||
Reference in New Issue
Block a user