[FFmpeg-cvslog] avformat/rtspcodes: introduce ff_rtsp_averror()

Andrey Utkin git at videolan.org
Tue Oct 21 03:53:35 CEST 2014


ffmpeg | branch: master | Andrey Utkin <andrey.utkin at corp.bluecherry.net> | Sat Oct 18 00:24:02 2014 +0400| [24dfd6e79b4116dcb0e0acb0f6ebeb8f0fe3b263] | committer: Michael Niedermayer

avformat/rtspcodes: introduce ff_rtsp_averror()

Currently this is another name for ff_http_averror()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=24dfd6e79b4116dcb0e0acb0f6ebeb8f0fe3b263
---

 libavformat/rtspcodes.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libavformat/rtspcodes.h b/libavformat/rtspcodes.h
index d4ae0a8..0ae490a 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 */



More information about the ffmpeg-cvslog mailing list