[FFmpeg-cvslog] rtspcodes: don't check for >0 on error codes macro

Anshul Maheshwari git at videolan.org
Tue Apr 8 23:07:09 CEST 2014


ffmpeg | branch: master | Anshul Maheshwari <er.anshul.maheshwari at gmail.com> | Tue Apr  8 15:49:29 2014 +0530| [5b30f2759267c12ac1a48460ec8c01415c8d5cd6] | committer: Reynaldo H. Verdejo Pinochet

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 at sisa.samsung.com>

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

 libavformat/rtspcodes.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtspcodes.h b/libavformat/rtspcodes.h
index 20addb3..76e2e66 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 {



More information about the ffmpeg-cvslog mailing list