[MPlayer-cvslog] r35439 - trunk/libmpcodecs/vf_remove_logo.c

upsuper subversion at mplayerhq.hu
Thu Nov 22 09:40:47 CET 2012


Author: upsuper
Date: Thu Nov 22 09:40:47 2012
New Revision: 35439

Log:
Use the same parameter type with malloc.

Using different types here may lead to various problems during type
conversion.

Modified:
   trunk/libmpcodecs/vf_remove_logo.c

Modified: trunk/libmpcodecs/vf_remove_logo.c
==============================================================================
--- trunk/libmpcodecs/vf_remove_logo.c	Wed Nov 21 22:44:49 2012	(r35438)
+++ trunk/libmpcodecs/vf_remove_logo.c	Thu Nov 22 09:40:47 2012	(r35439)
@@ -170,7 +170,7 @@ struct vf_priv_s
  * of how MPlayer works, it cannot safely halt execution, but at least the user
  * will get an error message before the segfault happens.
  */
-static void * safe_malloc(int size)
+static void * safe_malloc(size_t size)
 {
   void * answer = malloc(size);
   if (answer == NULL)


More information about the MPlayer-cvslog mailing list