[Ffmpeg-devel] [PATCH] from DivX, Part 2: Multifile source

Erik Slagter erik
Thu Jan 26 12:51:24 CET 2006

On Thu, 2006-01-26 at 11:34 +0000, M?ns Rullg?rd wrote:
> >> Since any character is legal
> >> in a Unix filename, it's hard to come up with a good choice though.
> >
> > There is one character that is not a legal character in a unix filename,
> > but that's really nitpicking ;-) I wouldn't recommend that one to use as
> > separator anyway ;-)
> The only two bytes that are not valid as part of a filename are '/' and '\0'.
> '/' is the directory separator, so it is a valid character in a pathname, which
> is really what we are talking about here.  '\0' marks the end of the name, as
> well as the end of C strings (notably argv[i]), so using that is impossible.
> You started the nitpicking ;-)

I guess you are right, I confused files with sockets, where a \0 byte is
allowed, the length is passed separately. I assume the \0 issue with
filenames is only an api issue, btw. I'll shut up ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2771 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060126/818b2178/attachment.bin>

More information about the ffmpeg-devel mailing list