[FFmpeg-soc] [soc]: r4565 - rtmp/rtmppkt.c

kostya subversion at mplayerhq.hu
Wed Jul 1 16:39:13 CEST 2009


Author: kostya
Date: Wed Jul  1 16:39:13 2009
New Revision: 4565

Log:
Use url_read_complete() when reading more than one byte

Modified:
   rtmp/rtmppkt.c

Modified: rtmp/rtmppkt.c
==============================================================================
--- rtmp/rtmppkt.c	Wed Jul  1 13:11:50 2009	(r4564)
+++ rtmp/rtmppkt.c	Wed Jul  1 16:39:13 2009	(r4565)
@@ -83,7 +83,7 @@ int rtmp_packet_read(URLContext *h, RTMP
                 return -1;
             }
             if (hdr == RTMP_PS_TWELVEBYTES) {
-                if (url_read(h, buf, 4) != 4) {
+                if (url_read_complete(h, buf, 4) != 4) {
                     return -1;
                 }
                 extra = AV_RL32(buf);


More information about the FFmpeg-soc mailing list