diff --git a/libavformat/udp.c b/libavformat/udp.c index de5c33278e..c5f16aed02 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -534,7 +534,7 @@ static int udp_read(URLContext *h, uint8_t *buf, int size) fd_set rfds; struct timeval tv; - if (s->circular_buffer_thread) { + if (s->fifo) { do { avail = av_fifo_size(s->fifo);