Ticket #3127: 0001-Partial-fix-for-the-ticket-3127-Video-stream-publish.patch

File 0001-Partial-fix-for-the-ticket-3127-Video-stream-publish.patch, 820 bytes (added by GoodvinJ, 13 years ago)

Fix for the avio_open hangs

  • libavformat/avio.c

    From 444ddcbc141f3160557db39514593b9b04ca39a2 Mon Sep 17 00:00:00 2001
    From: Byte <hzdbyte@gmail.com>
    Date: Thu, 14 Nov 2013 17:18:52 +0700
    Subject: [PATCH] Partial fix for the ticket #3127 (Video stream publishing via
     RTMPT)
    
    ---
     libavformat/avio.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/libavformat/avio.c b/libavformat/avio.c
    index 225d982..d7f1094 100644
    a b static inline int retry_transfer_wrapper(URLContext *h, uint8_t *buf,  
    305305                av_usleep(1000);
    306306            }
    307307        } else if (ret < 1)
    308             return (ret < 0 && ret != AVERROR_EOF) ? ret : len;
     308            return (ret < 0) ? ret : len;
    309309        if (ret)
    310310            fast_retries = FFMAX(fast_retries, 2);
    311311        len += ret;