Mercurial > mplayer.hg
changeset 37045:f63de2684d5a
vf_remove_logo: remove pointless multiplication, the value is always 1.
author | reimar |
---|---|
date | Sun, 06 Apr 2014 19:11:24 +0000 |
parents | 50ba718698ea |
children | ce9f83c64515 |
files | libmpcodecs/vf_remove_logo.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.*/