[FFmpeg-devel] [PATCH] Fix unaligned dsputil call in pngdec.c

Måns Rullgård mans
Sat May 23 17:29:41 CEST 2009


Vitor Sessak <vitor1001 at gmail.com> writes:

> Michael Niedermayer wrote:
>> On Sat, May 23, 2009 at 11:51:43AM +0200, Vitor Sessak wrote:
>>> $subj, should fix FATE test #296 on Solaris/Sparc. Any suggestion
>>> on how to do this in a less hackish way is welcome.
> Index: libavcodec/pngdec.c
> ===================================================================
> --- libavcodec/pngdec.c	(revision 18855)
> +++ libavcodec/pngdec.c	(working copy)
> @@ -527,9 +527,10 @@
>                          goto fail;
>                  }
>                  /* compressed row */
> -                s->crow_buf = av_malloc(s->row_size + 1);
> +                s->crow_buf = (uint8_t *) av_malloc(s->row_size + 16);

Useless cast.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list