[FFmpeg-cvslog] r21534 - trunk/libavformat/rtmpproto.c

kostya subversion
Sat Jan 30 10:45:52 CET 2010


Author: kostya
Date: Sat Jan 30 10:45:52 2010
New Revision: 21534

Log:
10l trocadero: now return value of ff_rtmp_packet_read() has different meaning

Modified:
   trunk/libavformat/rtmpproto.c

Modified: trunk/libavformat/rtmpproto.c
==============================================================================
--- trunk/libavformat/rtmpproto.c	Sat Jan 30 10:24:52 2010	(r21533)
+++ trunk/libavformat/rtmpproto.c	Sat Jan 30 10:45:52 2010	(r21534)
@@ -663,7 +663,7 @@ static int get_packet(URLContext *s, int
         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);



More information about the ffmpeg-cvslog mailing list