Skip to content

v4l2codecs: mpeg2: Fix selected sizeimage

Due to a copy paste bug, the bitdepth was never set and that was leading to requesting sizeimage of 0. Previously that worked since the driver would in that case pick a size for us. But now the we bumped the minimum to 4KB, the driver happily allocate 4KB of bitstream which lead to decoding error.

As MPEG2 have a fixed bitdeph of 8, use a define instead of the run-time variable.

Merge request reports