On Wed, 23 Jul 2014 10:31:52 -0600, Mike Lockhart <[email protected]> 
wrote:
> Hi,
> 
> I am using libav to encode audio/video and have started seeing the call 
> to codec_open2 fail when it has worked for several months. I'm not sure 
> what the -22 means and calling strerror() returns the useless message 
> "Error number -22 occurred".
> 
> So I'm not sure what to do to fix this.
> 
> Does anyone know what -22 means?
> 

I think -22 is something like EINVAL on common linux systems.
To make it recognizable by strerror, you must wrap it in the AV_UNERROR macro
(which drops the minus on systems with positive error codes)

-- 
Anton Khirnov
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to