Skip to content

Commit

Permalink
ffmpeg: comment mpeg4 hack
Browse files Browse the repository at this point in the history
  • Loading branch information
ubitux committed Mar 3, 2015
1 parent 81a9126 commit c285937
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c285937

Please sign in to comment.