[FFmpeg-cvslog] ffmpeg: comment mpeg4 hack

Clément Bœsch git at videolan.org
Tue Mar 3 20:25:35 CET 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Tue Mar  3 20:24:41 2015 +0100| [c285937ccc98109d0b5d4ba2e0560ebbb81f580f] | committer: Clément Bœsch

ffmpeg: comment mpeg4 hack

See 3734c3ea51ae002a85366ee52dbc8f9df4cfd3db

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c285937ccc98109d0b5d4ba2e0560ebbb81f580f
---

 ffmpeg.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index ca8411b..6604ff0 100644
--- a/ffmpeg.c
+++ b/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);
                     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) {
                     av_reduce(&ost->frame_rate.num, &ost->frame_rate.den,
                               ost->frame_rate.num, ost->frame_rate.den, 65535);



More information about the ffmpeg-cvslog mailing list