Skip to content

v4l2: Add protection when set decoder capture fps accroding to output fps

Qi Hou requested to merge (removed):framerate into master

Some v4l2 drivers don't have the capacity to change framerate, which means didn't implement S_PARM ioctl. Then decoder capture fps may become 0/0 if numerator and denominator returned by G_PARM ioctl are both 0. fps 0/0 causes critical warning "passed '0' as denominator for `GstFraction'".

In order to avoid such warning, add protection to set decoder fps only when output fps is none 0 and denominator returned by G_PARM ioctl is none 0.

Merge request reports

Loading