[FFmpeg-devel] [PATCH] libavcodec/zmbv.c: Don't modify const buffer

Patrik Kullman patrik
Tue Feb 17 13:56:59 CET 2009

Trying to solve this issue somewhere else than BSFs until that API is
sorted out.

Copy the const input buffer into the Zlib struct instead of using the
same address.

Prevents warning:
libavcodec/zmbv.c: In function ?decode_frame?:
libavcodec/zmbv.c:494: warning: assignment discards qualifiers from
pointer target type

After inflate() is complated, free next_in.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-zmbv-copy_const.patch
Type: text/x-patch
Size: 744 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090217/49eb70a8/attachment.bin>

More information about the ffmpeg-devel mailing list