[MPlayer-cvslog] r25143 - trunk/libaf/af.c

ulion subversion at mplayerhq.hu
Fri Nov 23 06:50:34 CET 2007


Author: ulion
Date: Fri Nov 23 06:50:34 2007
New Revision: 25143

Log:
Prevent from using data->len when data is NULL (when play() return NULL).


Modified:
   trunk/libaf/af.c

Modified: trunk/libaf/af.c
==============================================================================
--- trunk/libaf/af.c	(original)
+++ trunk/libaf/af.c	Fri Nov 23 06:50:34 2007
@@ -514,7 +514,7 @@ af_data_t* af_play(af_stream_t* s, af_da
     if (data->len <= 0) break;
     data=af->play(af,data);
     af=af->next;
-  }while(af);
+  }while(af && data);
   return data;
 }
 



More information about the MPlayer-cvslog mailing list