diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 225fb58fdd..aac3c3370e 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -2532,7 +2532,7 @@ reconnect: do { ret = get_packet(s, 1); - } while (ret == EAGAIN); + } while (ret == AVERROR(EAGAIN)); if (ret < 0) goto fail;