[MPlayer-dev-eng] [SURVEY] change mencoder's default ofilename extension?

Oded Shimon ods15 at ods15.dyndns.org
Tue Nov 29 20:02:06 CET 2005


On Tue, Nov 29, 2005 at 07:51:41PM +0100, Reimar D?ffinger wrote:
> On Tue, Nov 29, 2005 at 08:23:34PM +0200, Oded Shimon wrote:
> > file.avi.mpg => "mpg"
> > file         => "file"
> 
> Sorry, but I really think this is wrong. "file" has no extension, so why
> consider "file" the extension??

Well, what if some asshat does "-o avi". :) Should I give the warning then?
This is just a tiny test against "avi" or "mpg" to give a warning, it's not 
so critical.

> > file.        => ""
> > 
> > using strrchr would not work with "file", but i could do it with strrchr if 
> > you preffer, i see no point in it though.
> 
> Well, it is a standard function, IMHO making the code easier to
> understand.

Speaking of standards, is "strcasecmp" standard/ok to use?... (see other 
mail)

- ods15




More information about the MPlayer-dev-eng mailing list