[Ffmpeg-devel] execl should be terminated with null _pointer_
Måns Rullgård
mru
Mon May 9 13:13:52 CEST 2005
Erik Slagter <erik at slagter.name> writes:
> On Mon, 2005-05-09 at 03:28 -0700, Jacob Meuser wrote:
>> subj says all
>
> Then how is NULL defined on your arch?
>
> IMHO even 0 would suffice (being a special case in C).
No, it would not, since this is a call to a variadic function. The
compiler must somehow be informed that the argument is a pointer, so
it can use the correct size. On architectures where pointers and ints
are different sizes, using just a 0 would break.
--
M?ns Rullg?rd
mru at inprovide.com
More information about the ffmpeg-devel
mailing list