• Andrey Utkin's avatar
    avformat/http: Introduce ff_http_averror() · 9d86ce78
    Andrey Utkin authored
    int ff_http_averror(int status_code, int default_averror)
    
    This helper function returns AVERROR_ value from 3-digit HTTP status
    code.
    
    Second argument, default_averror, is used if no specific AVERROR_ is
    available. It is introduced because in different places of code
    different return codes are used - -1, AVERROR(EIO), AVERROR_INVALIDDATA.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    9d86ce78
http.h 1.72 KB