[FFmpeg-cvslog] ffmpeg: reduce frame rate for mpeg4 to be within the spec limits
Michael Niedermayer
git at videolan.org
Wed Feb 19 18:53:55 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 19 18:36:00 2014 +0100| [3734c3ea51ae002a85366ee52dbc8f9df4cfd3db] | committer: Michael Niedermayer
ffmpeg: reduce frame rate for mpeg4 to be within the spec limits
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3734c3ea51ae002a85366ee52dbc8f9df4cfd3db
---
ffmpeg.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index 6a51810..1369fda 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list