• Stefano Sabatini's avatar
    lavu/error: fix sign error in av_sterror() error code · 5683de00
    Stefano Sabatini authored
    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.
    5683de00
error.c 3.45 KB