Add a few size checks when decoding rtjpeg blocks.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 24 May 2009 09:03:45 +0000 (09:03 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 24 May 2009 09:03:45 +0000 (09:03 +0000)
commit8d857c543402911f46ad38b093ab9aaf5b9a9a18
treeb3cc1f490c398d2baeceef00b9542b8d31a1da1b
parent0766291a669281f556d7a0b32e8a920650dd93db
Add a few size checks when decoding rtjpeg blocks.
Might avoid crashes in unlikely cases, but mostly avoids ugly artefacts
for partial frames.

Originally committed as revision 18925 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/rtjpeg.c