summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnshul Maheshwari <er.anshul.maheshwari@gmail.com>2014-04-08 15:31:29 +0530
committerReynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>2014-04-08 18:05:02 -0300
commit5b30f2759267c12ac1a48460ec8c01415c8d5cd6 (patch)
treeaee70ddde13f3a291b33bbf966091851aac65af3
parent358f9ae6390a8d665eb3539eb26c11fe8e6dc224 (diff)
rtspcodes: don't check for >0 on error codes macro
Avoids a warning with gcc 4.7 and -Wtype-limits. Albeit superfluous (At least gcc 4.8 didnt consider this been a problem). Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
-rw-r--r--libavformat/rtspcodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtspcodes.h b/libavformat/rtspcodes.h
index 20addb3d00..76e2e667d5 100644
--- a/libavformat/rtspcodes.h
+++ b/libavformat/rtspcodes.h
@@ -120,7 +120,7 @@ static const av_unused char *rtsp_status_strings[] = {
};
#define RTSP_STATUS_CODE2STRING(x) (\
-x >= 0 && x < FF_ARRAY_ELEMS(rtsp_status_strings) && rtsp_status_strings[x] \
+x >= 100 && x < FF_ARRAY_ELEMS(rtsp_status_strings) && rtsp_status_strings[x] \
)? rtsp_status_strings[x] : NULL
enum RTSPMethod {