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

Vitor Sessak vitor1001
Sat May 23 17:32:10 CEST 2009


M?ns Rullg?rd wrote:
> 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.

100l (does it grows exponentially with the number of consecutive 
brainfarts?). New version attached.

-Vitor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: png3.diff
Type: text/x-diff
Size: 922 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090523/6921ce45/attachment.diff>



More information about the ffmpeg-devel mailing list