[FFmpeg-soc] [soc]: r5741 - mms/mmst.c

spyfeng subversion at mplayerhq.hu
Thu Apr 8 14:52:40 CEST 2010


Author: spyfeng
Date: Thu Apr  8 14:52:39 2010
New Revision: 5741

Log:
return AVERROR(ENOMEM) when malloc failed in case of mem leaks.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Wed Apr  7 19:43:32 2010	(r5740)
+++ mms/mmst.c	Thu Apr  8 14:52:39 2010	(r5741)
@@ -327,7 +327,7 @@ static MMSSCPacketType get_tcp_server_re
                                               mms->asf_header_size
                                               + mms->pkt_buf_len);
                             if (!mms->asf_header)
-                                return -1;
+                                return AVERROR(ENOMEM);
                             memcpy(mms->asf_header + mms->asf_header_size,
                                                  mms->pkt_read_ptr,
                                                  mms->pkt_buf_len);


More information about the FFmpeg-soc mailing list