On Thu, Aug 29, 2019 at 10:30 PM Nicolas George <geo...@nsup.org> wrote:
> Aman Gupta (12019-08-29): > > > > - in_port_params.format.video.xFramerate = (1 << 16) * > > > avctx->framerate.num / avctx->framerate.den; > > > > + in_port_params.format.video.xFramerate = (int64_t)(1 << 16) > * > > > avctx->framerate.num / avctx->framerate.den; > > > > > > change 1 > 1LL is more simple to solve the overflow. > > > > Great, thank you for the tip! Updated my local patch accordingly. > > This remark looks weird: using long long directly is almost never > correct code. > > And in this particular case, av_rescale_q() seems the correct choice. > The OMX spec requires xFramerate in Q16 format, which is basically (framerate<<16) I'm not sure how I would use av_rescale_q to achieve this. > > Regards, > > -- > Nicolas George > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".