• Luca Barbato's avatar
    bitstream: Avoid undefined behavior in bitstream_skip() · 79f64f7e
    Luca Barbato authored
    Do not use skip_remaining() to fully wipe the cache, as this could do
    a 64-bit shift of a 64-bit variable which is undefined behavior in C.
    Instead set the related variables to zero directly.
    
    Thanks to Uoti for pointing out the problem.
    
    CC: libav-stable@libav.org
    79f64f7e
bitstream.h 8.64 KB