[FFmpeg-devel] [PATCH] Do not assume long is same width as x86 register in swscale.

Ramiro Polla ramiro.polla
Tue Mar 17 22:03:08 CET 2009


Hi,

On Mon, Mar 16, 2009 at 9:05 PM, Ramiro Polla <ramiro.polla at gmail.com> wrote:
>> [...]
>>> Index: libswscale/swscale-example.c
>>> ===================================================================
>>> --- libswscale/swscale-example.c ? ? ?(revision 28974)
>>> +++ libswscale/swscale-example.c ? ? ?(working copy)
>>> @@ -199,7 +199,7 @@
>>>
>>> ? ? ?for (y=0; y<H; y++){
>>> ? ? ? ? ?for (x=0; x<W*4; x++){
>>> - ? ? ? ? ? ?rgb_data[ x + y*4*W]= random();
>>> + ? ? ? ? ? ?rgb_data[ x + y*4*W]= rand();
>>> ? ? ? ? ?}
>>> ? ? ?}
>>> ? ? ?sws_scale(sws, rgb_src, rgb_stride, 0, H, src, stride);
>>
>> no
>> we have our own PRNG
>
> Oops. That and the cs_test bit weren't supposed to go to the patch.

Updated patch attached.

[...]

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libswscale_x86_reg_2.diff
Type: text/x-patch
Size: 11351 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090317/f738dbbe/attachment.bin>



More information about the ffmpeg-devel mailing list