roqvideodec: fix a potential infinite loop in roqvideo_decode_frame().
authorAnton Khirnov <anton@khirnov.net>
Wed, 6 Mar 2013 08:15:19 +0000 (09:15 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 8 Mar 2013 07:11:35 +0000 (08:11 +0100)
commit3e2f200237af977b9253b0aff121eee27bcedb44
tree73d63cefeaee192e7115bddd8988b30ca5c16a2a
parent8a49d2bcbe7573bb4b765728b2578fac0d19763f
roqvideodec: fix a potential infinite loop in roqvideo_decode_frame().

When there is just 1 byte remanining in the buffer, nothing will be read
and the loop will continue forever. Check that there are at least 8
bytes, which are always read at the beginning.

CC:libav-stable@libav.org
libavcodec/roqvideodec.c