[FFmpeg-soc] [soc]: r5240 - concat/libavformat/avplaylist.c

gkovacs subversion at mplayerhq.hu
Mon Aug 24 08:00:51 CEST 2009


Author: gkovacs
Date: Mon Aug 24 08:00:51 2009
New Revision: 5240

Log:
don't attempt to continue after av_malloc failure

Modified:
   concat/libavformat/avplaylist.c

Modified: concat/libavformat/avplaylist.c
==============================================================================
--- concat/libavformat/avplaylist.c	Mon Aug 24 07:59:27 2009	(r5239)
+++ concat/libavformat/avplaylist.c	Mon Aug 24 08:00:51 2009	(r5240)
@@ -157,7 +157,9 @@ void av_playlist_split_encodedstring(con
         flist[i] = av_malloc(sepidx[i+1]-sepidx[i]);
         if (!flist[i]) {
             av_log(NULL, AV_LOG_ERROR, "av_malloc error in av_playlist_split_encodedstring\n");
-            continue;
+            *flist_ptr = NULL;
+            *len_ptr = 0;
+            return;
         }
         av_strlcpy(flist[i], ts+sepidx[i], sepidx[i+1]-sepidx[i]);
     }


More information about the FFmpeg-soc mailing list