From b381a823cd97fb37f95706e66a7eb8b025243b3c Mon Sep 17 00:00:00 2001
From: Kostya Shishkov <kostya.shishkov@gmail.com>
Date: Sat, 30 Jan 2010 09:45:52 +0000
Subject: [PATCH] 10l trocadero: now return value of ff_rtmp_packet_read() has
 different meaning

Originally committed as revision 21534 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/rtmpproto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 6787e0b48e6..03fd90aa8e5 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -663,7 +663,7 @@ static int get_packet(URLContext *s, int for_header)
         RTMPPacket rpkt;
         if ((ret = ff_rtmp_packet_read(rt->stream, &rpkt,
                                        rt->chunk_size, rt->prev_pkt[0])) != 0) {
-            if (ret > 0) {
+            if (ret == 0) {
                 return AVERROR(EAGAIN);
             } else {
                 return AVERROR(EIO);
-- 
GitLab