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