ffmpeg: reduce frame rate for mpeg4 to be within the spec limits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-02-19 18:36:00 +01:00
parent 2969fb4393
commit 3734c3ea51
1 changed files with 4 additions and 0 deletions

View File

@ -2508,6 +2508,10 @@ static int transcode_init(void)
int idx = av_find_nearest_q_idx(ost->frame_rate, ost->enc->supported_framerates);
ost->frame_rate = ost->enc->supported_framerates[idx];
}
if (codec->codec_id == AV_CODEC_ID_MPEG4) {
av_reduce(&ost->frame_rate.num, &ost->frame_rate.den,
ost->frame_rate.num, ost->frame_rate.den, 65535);
}
}
switch (codec->codec_type) {