Hi Carlos, On Sat, 2004-02-28 at 14:08, Carlos Sierra wrote: > I've been using mp2enc from long but in the last release from the debian > unstable repository it crashes whe the filename specified with -o option is > too long. > > I tried with C and POSIX locale, but none worked. > Here is an example: > mp2enc -v 0 -r 44100 -b 128 -s -o > "/tmp/pruebalaksdjflkjfhkasjdhflasjdfwiehjaskdjaklsjklfdjgkashgkdgkjadkfasdfkljdfakdfsjgajfgjkahdkakfklkladifiosdfhgohioddasfkj.mpa" > > < /tmp/prueba.wav > Could not create > "/tmp/[EMAIL PROTECTED]@/". > > however if we try: > mp2enc -v 0 -r 44100 -b 128 -s -o "/tmp/prueba.mpa" < "/tmp/prueba.wav" > > it works perfect. > It seems like mp2enc is not reserving memory enough to get any filename.
It has always been like that. We reserve MAX_NAME_SIZE (defined as 81) bytes for the name, so 80 bytes is the max. size of a filename. Seems like very little, but it's really a lot. You can increase MAX_NAME_SIZE if you need a longer name for specific purposes (see aenc/common.h). Or use shorter names. ;). Ronald -- Ronald Bultje <[EMAIL PROTECTED]> Linux Video/Multimedia developer ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users