From adb5496146c9fa6b7a8c879c27e8e175fa077a4f Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 30 Jan 2010 09:47:57 +0000 Subject: [PATCH] another 10l: forgot to change parent condition as well Originally committed as revision 21535 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 03fd90aa8e..74442c8917 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -662,7 +662,7 @@ static int get_packet(URLContext *s, int for_header) for (;;) { RTMPPacket rpkt; if ((ret = ff_rtmp_packet_read(rt->stream, &rpkt, - rt->chunk_size, rt->prev_pkt[0])) != 0) { + rt->chunk_size, rt->prev_pkt[0])) <= 0) { if (ret == 0) { return AVERROR(EAGAIN); } else {