[FFmpeg-devel] perror() in libav*?

Luca Abeni lucabe72
Mon Nov 19 08:33:10 CET 2007


Hi Michael,

Michael Niedermayer wrote:
[...]
>>>> +        av_log(NULL, AV_LOG_ERROR, "malloc: %s", strerror(errno));\
>>> no strerror(errno) is silly
>>> its always "shit iam out of memory" here
>> Ok. So, should I just use
>> +        av_log(NULL, AV_LOG_ERROR, "Cannot allocate memory\n");\
> 
> yes, but you have no humor
> "install more ram, increase swap partition or close some of your pron downloads"
> "send us <current ram price + shipping costs>*5 and we will send you a module
>  to unlock the requested feature"

Well, I try not to use any sense of humor when I code... I realize this could be
a problem, so what about "Cannot allocate memory. Try again later, you might
be luckier". (Or "your RAM will be back soon").

Ok, for this time I think I'll just commit the non-humoristic version


				Luca




More information about the ffmpeg-devel mailing list