From 5b30f2759267c12ac1a48460ec8c01415c8d5cd6 Mon Sep 17 00:00:00 2001 From: Anshul Maheshwari Date: Tue, 8 Apr 2014 15:31:29 +0530 Subject: [PATCH] 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 --- libavformat/rtspcodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {