OSDN Git Service

Fix MJPEG decoder for AMV files.
authorVladimir Voroshilov <voroshil@gmail.com>
Sat, 13 Oct 2007 17:38:58 +0000 (17:38 +0000)
committerVladimir Voroshilov <voroshil@gmail.com>
Sat, 13 Oct 2007 17:38:58 +0000 (17:38 +0000)
commit3c3704d28179e533e2f42a20e3234827b3f52685
treee94a57ec72b323f890ba4ac1cea38d987333791a
parent4d570f94ba055d75f469aacadfccf0bdffcbae6c
Fix MJPEG decoder for AMV files.
Since decoding is doing from the end and aligned by 16
previous code worked correctly only when picture height was dividable by 16,
otherwise it provides garbage in top lines and truncates bottom.
New code adjusts data[] pointers taking in account alignment issue.

Originally committed as revision 10727 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mjpegdec.c
libavcodec/sp5xdec.c