]> git.sesse.net Git - ffmpeg/commit
avcodec/omx: fix xFramerate calculation
authorAman Gupta <aman@tmm1.net>
Thu, 29 Aug 2019 23:00:50 +0000 (16:00 -0700)
committerAman Gupta <aman@tmm1.net>
Mon, 2 Sep 2019 20:46:11 +0000 (13:46 -0700)
commitb022d9ba288ad3de321e0835b0aedfd91c2c3064
treedaf6532bcc8c5db9a1f648144a7d60952025c4c3
parentf4eb7d84a7c219eac130750417e4bc2cbbff7b3f
avcodec/omx: fix xFramerate calculation

Integer overflow in the Q16 framerate calculation was sending
invalid values to the OMX encoder.

On the RPI4, this manifested as bitrate controls being ignored
on video streams with 60000/1001 framerates. Video streams with
30000/1001 framerates were not affected.

Signed-off-by: Aman Gupta <aman@tmm1.net>
libavcodec/omx.c