[FFmpeg-devel] [PATCH] fix shifted picture in AMV video decoder when height is not dividable by 16

Vladimir Voroshilov voroshil
Wed Oct 10 16:34:07 CEST 2007

Hi, All

If picture height is not dividable by 16, AMV related flipping code in
mjpeg decoder does not work correctly.
You can easily see height%16 lines of garbage at the top of picture
while the same number of bottom lines are not visible.

Attached patch adds code which moves three YUV planes in buffer up
after decoding picture.

Comments and (especialy) optimizations are welcome.

Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amv_shift_fix.diff
Type: text/x-diff
Size: 943 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071010/b3a4c056/attachment.diff>

More information about the ffmpeg-devel mailing list