Mercurial > mplayer.hg
diff libmpcodecs/vf_remove_logo.c @ 35345:dccbfcc7c177
Use the same parameter type with malloc.
Using different types here may lead to various problems during type
conversion.
| author | upsuper |
|---|---|
| date | Thu, 22 Nov 2012 08:40:47 +0000 |
| parents | 7b3815b8238d |
| children | f63de2684d5a |
line wrap: on
line diff
--- a/libmpcodecs/vf_remove_logo.c Wed Nov 21 21:44:49 2012 +0000 +++ b/libmpcodecs/vf_remove_logo.c Thu Nov 22 08:40:47 2012 +0000 @@ -170,7 +170,7 @@ * 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)
