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

spyfeng subversion at mplayerhq.hu
Sat Mar 20 16:43:11 CET 2010


Author: spyfeng
Date: Sat Mar 20 16:43:11 2010
New Revision: 5689

Log:
handle the situation for read_result<0.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Sat Mar 20 16:36:26 2010	(r5688)
+++ mms/mmst.c	Sat Mar 20 16:43:11 2010	(r5689)
@@ -257,6 +257,8 @@ static int read_bytes(MMSContext *mms, u
     while(len<length_to_read)
     {
         int read_result= url_read(mms->mms_hd, buffer+len, length_to_read-len);
+        if(read_result < 0)
+            return read_result;
         if(read_result)
         {
             len+= read_result;


More information about the FFmpeg-soc mailing list