another 10l: forgot to change parent condition as well
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 30 Jan 2010 09:47:57 +0000 (09:47 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 30 Jan 2010 09:47:57 +0000 (09:47 +0000)
Originally committed as revision 21535 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtmpproto.c

index 03fd90a..74442c8 100644 (file)
@@ -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 {