• Ronald S. Bultje's avatar
    mjpegb: don't return 0 at the end of frame decoding. · 74699ac8
    Ronald S. Bultje authored
    Return 0 indicates "please return the same data again", i.e. it causes
    an infinite loop. Instead, return that we consumed the buffer if we
    finished decoding succesfully, or return an error if an error occurred.
    
    Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC: libav-stable@libav.org
    74699ac8
mjpegbdec.c 5.64 KB