h264-reader icon indicating copy to clipboard operation
h264-reader copied to clipboard

Make the decoder more robust against extra trailing bits in the NALUs

Open DCNick3 opened this issue 7 months ago • 0 comments

I initially implemented this as a solution for #106. While my issue turned to actually be not-a-bug, it seems that it still exists in the wild: https://github.com/scottlamb/retina/issues/102.

It mimics the logic of ffmpeg for reading rbsp_trailing_bits, while issuing a warning in case of extra trailing bytes.

DCNick3 avatar Jul 24 '25 18:07 DCNick3