[Ffmpeg-devel] [PATCH] cosmetic changes to libavcodec/mem.c
Hervé W.
H.O.W.aka.V+ffmpeg
Thu Jun 29 12:53:31 CEST 2006
Hello,
this fixes the spelling of some comments and changes an int to a long
for consistency with av_malloc.
-V
-------------- next part --------------
Index: libavcodec/mem.c
===================================================================
--- libavcodec/mem.c (revision 5538)
+++ libavcodec/mem.c (working copy)
@@ -49,7 +49,7 @@
long diff;
#endif
- /* lets disallow possible ambiguous cases */
+ /* let's disallow possible ambiguous cases */
if(size > INT_MAX)
return NULL;
@@ -100,15 +100,15 @@
void *av_realloc(void *ptr, unsigned int size)
{
#ifdef MEMALIGN_HACK
- int diff;
+ long diff;
#endif
- /* lets disallow possible ambiguous cases */
+ /* let's disallow possible ambiguous cases */
if(size > INT_MAX)
return NULL;
#ifdef MEMALIGN_HACK
- //FIXME this isnt aligned correctly though it probably isnt needed
+ //FIXME this isn't aligned correctly, though it probably isn't needed
if(!ptr) return av_malloc(size);
diff= ((char*)ptr)[-1];
return realloc(ptr - diff, size + diff) + diff;
More information about the ffmpeg-devel
mailing list