diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-19 18:36:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-19 18:40:27 +0100 |
commit | 3734c3ea51ae002a85366ee52dbc8f9df4cfd3db (patch) | |
tree | 14cd342d9e50fe6485344448fb9593c1d15f4fd7 /ffmpeg.c | |
parent | 2969fb43939e74c632559dc865a9ae542ca9eef8 (diff) | |
download | ffmpeg-3734c3ea51ae002a85366ee52dbc8f9df4cfd3db.tar.gz |
ffmpeg: reduce frame rate for mpeg4 to be within the spec limits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |