mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
parent
81a91269a2
commit
c285937ccc
1
ffmpeg.c
1
ffmpeg.c
@ -2847,6 +2847,7 @@ static int transcode_init(void)
|
|||||||
int idx = av_find_nearest_q_idx(ost->frame_rate, ost->enc->supported_framerates);
|
int idx = av_find_nearest_q_idx(ost->frame_rate, ost->enc->supported_framerates);
|
||||||
ost->frame_rate = ost->enc->supported_framerates[idx];
|
ost->frame_rate = ost->enc->supported_framerates[idx];
|
||||||
}
|
}
|
||||||
|
// reduce frame rate for mpeg4 to be within the spec limits
|
||||||
if (enc_ctx->codec_id == AV_CODEC_ID_MPEG4) {
|
if (enc_ctx->codec_id == AV_CODEC_ID_MPEG4) {
|
||||||
av_reduce(&ost->frame_rate.num, &ost->frame_rate.den,
|
av_reduce(&ost->frame_rate.num, &ost->frame_rate.den,
|
||||||
ost->frame_rate.num, ost->frame_rate.den, 65535);
|
ost->frame_rate.num, ost->frame_rate.den, 65535);
|
||||||
|
Loading…
Reference in New Issue
Block a user