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>
pull/64/head
Anshul Maheshwari 11 years ago committed by Reynaldo H. Verdejo Pinochet
parent 358f9ae639
commit 5b30f27592
  1. 2
      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 {

Loading…
Cancel
Save