[FFmpeg-devel] Setting the frame rate in libavcodec/libopenh264enc.c

Michael Niedermayer michaelni at gmx.at
Fri Jul 10 04:37:48 CEST 2015

On Thu, Jul 09, 2015 at 03:49:07PM +0000, Gregory J Wolfe wrote:
> We have been using Cisco's libopenh264 as part of FFmpeg with good results.
> However, function svc_encode_init() in libavcodec/libopenh264enc.c appears to
> be setting the frame rate incorrectly.  The line of code in question looks like:
>     param.fMaxFrameRate = avctx->time_base.den / avctx->time_base.num;
> Since fMaxFrameRate is of type float, shouldn't this be something like:
>     param.fMaxFrameRate = avctx->time_base.den / (double)avctx->time_base.num;

equivalent change made


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150710/0c447535/attachment.sig>

More information about the ffmpeg-devel mailing list