On Sat, Apr 30, 2022 at 12:18:26AM +0200, Michael Niedermayer wrote: > Fixes: Assertion failure it was this av_assert1((get_bits_count(gb) % 8) == 0); that failed IIRC [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Rewriting code that is poorly written but fully understood is good. Rewriting code that one doesnt understand is a sign that one is less smart than the original author, trying to rewrite it will not make it better.