[FFmpeg-devel] [PATCH 0/5] Add HTTP/RTSP specific AVERROR codes

wm4 nfxjfg at googlemail.com
Sat Oct 18 15:16:40 CEST 2014


On Sat, 18 Oct 2014 00:23:58 +0400
Andrey Utkin <andrey.utkin at corp.bluecherry.net> wrote:

> Any comments and testing are appreciated. I have made a little amount of testing, but RTSP, HTTP and HTTPS 401 and 404 work as expected.
> 
> Andrey Utkin (5):
>   Introduce new error codes for 4XX and 5XX replies from remote servers
>   Introduce ff_http_averror()
>   Use ff_http_averror()
>   Introduce ff_rtsp_averror()
>   Use ff_rtsp_averror()
> 
>  libavformat/http.c      | 23 ++++++++++++++++++++---
>  libavformat/http.h      |  2 ++
>  libavformat/rtsp.c      |  4 ++--
>  libavformat/rtspcodes.h |  7 +++++++
>  libavformat/rtspdec.c   | 27 ++++++++++++++-------------
>  libavformat/rtspenc.c   |  4 ++--
>  libavutil/error.c       |  6 ++++++
>  libavutil/error.h       |  7 +++++++
>  8 files changed, 60 insertions(+), 20 deletions(-)
> 

Why not just store the error code as separate field?


More information about the ffmpeg-devel mailing list