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

reimar subversion at mplayerhq.hu
Sun Apr 6 21:11:24 CEST 2014


Author: reimar
Date: Sun Apr  6 21:11:24 2014
New Revision: 37141

Log:
vf_remove_logo: remove pointless multiplication, the value is always 1.

Modified:
   trunk/libmpcodecs/vf_remove_logo.c

Modified: trunk/libmpcodecs/vf_remove_logo.c
==============================================================================
--- trunk/libmpcodecs/vf_remove_logo.c	Sun Apr  6 21:08:01 2014	(r37140)
+++ trunk/libmpcodecs/vf_remove_logo.c	Sun Apr  6 21:11:24 2014	(r37141)
@@ -553,7 +553,7 @@ static pgm_structure * load_pgm(const ch
   if (maximum_greyscale_value >= 256) REMOVE_LOGO_LOAD_PGM_ERROR_MESSAGE("[vf]remove_logo: Only 1 byte per pixel (pgm) or 1 byte per color value (ppm) are supported.\n");
   load_pgm_skip(input);
 
-  new_pgm->pixel = safe_malloc (sizeof(unsigned char) * new_pgm->width * new_pgm->height);
+  new_pgm->pixel = safe_malloc (new_pgm->width * new_pgm->height);
 
   /* Load the pixels. */
   /* Note: I am aware that fgetc(input) isn't the fastest way of doing things, but it is quite compact and the code only runs once when the filter is initialized.*/


More information about the MPlayer-cvslog mailing list