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

Luca Abeni lucabe72
Thu Nov 15 14:02:22 CET 2007

Hi all,

I recently noticed that some code in libavformat and libavcodec
calls perror() on errors. I assume this is not good, and such
code should be fixed, right?

I see two possibilities:
1) replace perror() with a proper call to av_log() (maybe using
    AV_LOG_WARNING instead of AV_LOG_ERROR?)
2) just remove all the references to perror() and return an error
    code (the calling application will be in charge of printing

The third possibility is to leave everything as is is now ;-)

What do other people think?


More information about the ffmpeg-devel mailing list