lavu/error: fix sign error in av_sterror() error code
The value returned by strerror_r may be positive depending on the system, so it is necessary to use AVERROR() in order to get a negative number. This way the successive negative check will not fail, and the function will print a meaningful error message on the buffer.
Showing
Please
register
or
sign in
to comment