diff options
author | Andrey Utkin <andrey.utkin@corp.bluecherry.net> | 2014-10-18 00:24:00 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-20 04:31:46 +0200 |
commit | 9d86ce783bf468e83c7d84240739baffd800d114 (patch) | |
tree | 2d384608bede225e725a246be537632ac38dc273 /ffmpeg_filter.c | |
parent | d4e62ebae7f47d7ad5479ec5f71f903f988dd19c (diff) | |
download | ffmpeg-9d86ce783bf468e83c7d84240739baffd800d114.tar.gz |
avformat/http: Introduce ff_http_averror()
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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_filter.c')
0 files changed, 0 insertions, 0 deletions