diff options
author | Andrey Utkin <andrey.utkin@corp.bluecherry.net> | 2014-10-18 00:24:02 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-21 03:51:14 +0200 |
commit | 24dfd6e79b4116dcb0e0acb0f6ebeb8f0fe3b263 (patch) | |
tree | 1bbf3c6d43592687f781724d0562cda204340807 /libavformat | |
parent | 315f9e929dc00d6df65b1b2bc278191832f63b96 (diff) | |
download | ffmpeg-24dfd6e79b4116dcb0e0acb0f6ebeb8f0fe3b263.tar.gz |
avformat/rtspcodes: introduce ff_rtsp_averror()
Currently this is another name for ff_http_averror()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtspcodes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/rtspcodes.h b/libavformat/rtspcodes.h index d4ae0a8ae2..0ae490a42e 100644 --- a/libavformat/rtspcodes.h +++ b/libavformat/rtspcodes.h @@ -25,6 +25,7 @@ #define AVFORMAT_RTSPCODES_H #include "libavutil/common.h" +#include "libavformat/http.h" /** RTSP handling */ enum RTSPStatusCode { @@ -139,4 +140,10 @@ enum RTSPMethod { RECORD, UNKNOWN = -1, }; + +static inline int ff_rtsp_averror(enum RTSPStatusCode status_code, int default_averror) +{ + return ff_http_averror(status_code, default_averror); +} + #endif /* AVFORMAT_RTSPCODES_H */ |