Fix MJPEG decoder for AMV files.
commit8b29d5b582e869f7cb829bd99788dc47ce84a464
authorvoroshil <voroshil@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 13 Oct 2007 17:38:58 +0000 (13 17:38 +0000)
committervoroshil <voroshil@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 13 Oct 2007 17:38:58 +0000 (13 17:38 +0000)
tree7a9286630e4e821654db804c2694c73497541209
parent67128662399418421d9bedeb2132ae8ea4262405
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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10727 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavcodec/mjpegdec.c
libavcodec/sp5xdec.c