[SCM] libav/experimental: 10l trocadero: now return value of ff_rtmp_packet_read() has different meaning

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:58:58 UTC 2013


The following commit has been merged in the experimental branch:
commit b381a823cd97fb37f95706e66a7eb8b025243b3c
Author: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:   Sat Jan 30 09:45:52 2010 +0000

    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

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 6787e0b..03fd90a 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);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list