[PATCH] [?] Don't check for memcpy() presence, assume it's available
I can't think of any case off the top of my head where memcpy() function is not available, and bcopy has to be used instead, but the md5.c source file (from dvdread) seems to be taken out of glibc, and it checks for HAVE_MEMCPY before using it, otherwise uses bcopy. With this patch (that I'm not sure if it's okay to apply as it changes dvdread sources), memcpy check is skipped, and it's always used instead. This also removes the implicit declarations warnings (that become errors when compiled with xine). Note that luckily the return value of memcpy() is never used in md5.c so there's no risk that a broken pointer is dereferenced with the implicit declarations. -- Diego "Flameeyes" Pettenò http://farragut.flameeyes.is-a-geek.org/
Hello, On Tue, Apr 17, 2007 at 07:55:28PM +0200, Diego 'Flameeyes' Petten? wrote: [...]
With this patch (that I'm not sure if it's okay to apply as it changes dvdread sources), memcpy check is skipped, and it's always used instead.
Absolutely agree with this change.
Note that luckily the return value of memcpy() is never used in md5.c
Hmm... md5.c... I think I really should do a checkout and see what code can be replaced with (hopefully simpler and better maintained) libavutil code ;-) Greetings, Reimar Döffinger
Hmm... md5.c... I think I really should do a checkout and see what code can be replaced with (hopefully simpler and better maintained) libavutil code ;-) The problem here is that the code comes from libdvdread, and as far as I could see from Nico's commit, the idea was to be able to use system's
On Tue, 17 Apr 2007 20:34:14 +0200 Reimar Döffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de> wrote: libdvdread rather than the internal copy of it. So unless you want to fork libdvdread, the changes to the dvdread/ subdirectory should be limited as much as possible, and the changes should be pushed upstream. -- Diego "Flameeyes" Pettenò http://farragut.flameeyes.is-a-geek.org/
Diego 'Flameeyes' Pettenò wrote:
On Tue, 17 Apr 2007 20:34:14 +0200 Reimar Döffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de> wrote:
Hmm... md5.c... I think I really should do a checkout and see what code can be replaced with (hopefully simpler and better maintained) libavutil code ;-)
The problem here is that the code comes from libdvdread, and as far as I could see from Nico's commit, the idea was to be able to use system's libdvdread rather than the internal copy of it.
So unless you want to fork libdvdread, the changes to the dvdread/ subdirectory should be limited as much as possible, and the changes should be pushed upstream.
yes, pushed upstream and synced here (and in mplayer). applied, thanks
Reimar Döffinger wrote:
Hello, On Tue, Apr 17, 2007 at 07:55:28PM +0200, Diego 'Flameeyes' Petten? wrote: [...]
With this patch (that I'm not sure if it's okay to apply as it changes dvdread sources), memcpy check is skipped, and it's always used instead.
Absolutely agree with this change.
you don't need to agree, you can already commit
Hello, On Tue, Apr 17, 2007 at 11:09:02PM +0200, Nico Sabbi wrote:
Reimar Döffinger wrote:
On Tue, Apr 17, 2007 at 07:55:28PM +0200, Diego 'Flameeyes' Petten? wrote: [...]
With this patch (that I'm not sure if it's okay to apply as it changes dvdread sources), memcpy check is skipped, and it's always used instead. Absolutely agree with this change.
you don't need to agree, you can already commit
I have zero experience with dvdnav, so give me some time :-) (and actually I don't even have a checkout yet). Greetings, Reimar Döffinger
participants (3)
-
Diego 'Flameeyes' Pettenò -
Nico Sabbi -
Reimar Döffinger