diff options
author | Anshul Maheshwari <er.anshul.maheshwari@gmail.com> | 2014-04-08 15:31:29 +0530 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> | 2014-04-08 18:05:02 -0300 |
commit | 5b30f2759267c12ac1a48460ec8c01415c8d5cd6 (patch) | |
tree | aee70ddde13f3a291b33bbf966091851aac65af3 /libavformat/rtspcodes.h | |
parent | 358f9ae6390a8d665eb3539eb26c11fe8e6dc224 (diff) | |
download | ffmpeg-5b30f2759267c12ac1a48460ec8c01415c8d5cd6.tar.gz |
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>
Diffstat (limited to 'libavformat/rtspcodes.h')
-rw-r--r-- | libavformat/rtspcodes.h | 2 |
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 { |