Skip to content

mux: mpeg: fix overflow handling

Alaric Senat requested to merge asenat/vlc:mpeg-bits-overflow into master

Fixes regressions from 3856f9fc.

The previous barrier was using i_count as a byte count instead of a bit count leading to the function bailing for legitimate writes. This patches takes into account the remaining bits to write under the buffer cursor in its overflow check.

Merge request reports

Loading