aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-03-03 20:24:41 +0100
committerClément Bœsch <u@pkh.me>2015-03-03 20:25:28 +0100
commitc285937ccc98109d0b5d4ba2e0560ebbb81f580f (patch)
tree4ed09671b7449c647cccb30386cac7f102d96cc1 /ffmpeg.c
parent81a91269a2fbeb87de53e395c6bed0c70c310cae (diff)
downloadffmpeg-c285937ccc98109d0b5d4ba2e0560ebbb81f580f.tar.gz
ffmpeg: comment mpeg4 hack
See 3734c3ea51ae002a85366ee52dbc8f9df4cfd3db
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index ca8411b9a8..6604ff057b 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);