mux: mpeg: fix overflow handling
Compare changes
+ 12
− 3
@@ -21,6 +21,8 @@
@@ -55,15 +57,22 @@ static inline void bits_align( bits_buffer_t *p_buffer )
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.
VideoLAN code repository instance