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

kostya subversion at mplayerhq.hu
Wed Jul 22 08:08:13 CEST 2009


Author: kostya
Date: Wed Jul 22 08:08:13 2009
New Revision: 4759

Log:
Check whether packet creation succeeded

Modified:
   rtmp/rtmppkt.c

Modified: rtmp/rtmppkt.c
==============================================================================
--- rtmp/rtmppkt.c	Wed Jul 22 08:06:21 2009	(r4758)
+++ rtmp/rtmppkt.c	Wed Jul 22 08:08:13 2009	(r4759)
@@ -92,7 +92,8 @@ int ff_rtmp_packet_read(URLContext *h, R
             extra     = prev_pkt[channel_id].extra;
         }
     }
-    ff_rtmp_packet_create(p, channel_id, type, timestamp, data_size);
+    if (ff_rtmp_packet_create(p, channel_id, type, timestamp, data_size))
+        return -1;
     p->extra = extra;
     // save history
     prev_pkt[channel_id].channel_id = channel_id;


More information about the FFmpeg-soc mailing list