# HG changeset patch # User reimar # Date 1396811484 0 # Node ID f63de2684d5a2f2c01c0d3a7db6a6e477716b52c # Parent 50ba718698eaac11eb31722f805d78bbbced058e vf_remove_logo: remove pointless multiplication, the value is always 1. diff -r 50ba718698ea -r f63de2684d5a libmpcodecs/vf_remove_logo.c --- a/libmpcodecs/vf_remove_logo.c Sun Apr 06 19:08:01 2014 +0000 +++ b/libmpcodecs/vf_remove_logo.c Sun Apr 06 19:11:24 2014 +0000 @@ -553,7 +553,7 @@ 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.*/