[FFmpeg-devel] [PATCH] libavformat/avio: fix retry_transfer_wrapper return value on error

Daniel Kucera daniel.kucera at gmail.com
Mon Jun 5 21:43:56 EEST 2017


Signed-off-by: Daniel Kucera <daniel.kucera at gmail.com>
---
 libavformat/avio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 1e79c9dd5c..909cad564f 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -394,7 +394,7 @@ static inline int retry_transfer_wrapper(URLContext *h, uint8_t *buf,
                 av_usleep(1000);
             }
         } else if (ret < 1)
-            return (ret < 0 && ret != AVERROR_EOF) ? ret : len;
+            return ret;
         if (ret) {
             fast_retries = FFMAX(fast_retries, 2);
             wait_since = 0;
-- 
2.11.0



More information about the ffmpeg-devel mailing list