[FFmpeg-devel] [PATCH]Fix bug caused by difference in stride and picture width in libschroedingerenc and libschroedingerdec

Anuradha Suraparaju anuradha
Mon Aug 10 04:34:42 CEST 2009

When a frame is allocated using libschroedinger routines, the frame data
size does not match the actual frame size if the width is not a multiple
of 16. So we cannot do a straightforward memcpy of the frame returned by
the libschroedinger into the ffmpeg picture as the stride differs from
the width. The bug affects both libschroedingerenc and

The attached patch fixes this bug, by allocating for the libschroedinger
frame with the dimensions in AVCodecContext within libavcodec and
passing the frame to libschroedinger. 

The patch if for svn revision 19610.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpegsvn_trunk_revision_19610_libschroedinger_encdec.diff
Type: text/x-patch
Size: 4805 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090810/d261f66a/attachment.bin>

More information about the ffmpeg-devel mailing list