[MPlayer-dev-eng] [Patch] libvo/fastmemcpy

Yartrebo yartrebo at earthlink.net
Thu Mar 3 18:34:55 CET 2005


Hi,

I hope that this message was successfully put on a new thread.

I've noticed a minor bug in libvo/fastmemcpy.h. Apparently the const
modifier was left out of:

static inline void * memcpy_pic(void * dst, void * src, int
bytesPerLine, int height, int dstStride, int srcStride)

and

static inline void * mem2agpcpy_pic(void * dst, void * src, int
bytesPerLine, int height, int dstStride, int srcStride)



They should read:

static inline void * memcpy_pic(void * dst, const void * src, int
bytesPerLine, int height, int dstStride, int srcStride)

static inline void * mem2agpcpy_pic(void * dst, const void * src, int
bytesPerLine, int height, int dstStride, int srcStride)


This will bring it closer to the memcpy(...) api and will stop my new
filter code (vf_remove_logo) from throwing needless warnings about
losing the const attribute.



I've attached a patch to this end.

Sincerely,
Robert Edele

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvo_fastmemcpy.patch
Type: text/x-patch
Size: 965 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050303/317819a9/attachment.bin>


More information about the MPlayer-dev-eng mailing list