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

Michael Niedermayer michaelni
Wed Mar 18 06:27:44 CET 2009


On Tue, Mar 17, 2009 at 06:26:05PM -0300, Ramiro Polla wrote:
> 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.
> 
> > I've thought about making this use the native PRNG, but I'm too lazy
> > to send a patch for it. I might in the following in days if someone
> > doesn't beat me to it.
> 
> I wasn't sure what was the best PRNG for this case, or even if using
> random_seed was necessary. I'm guessing LFG with seed 1 is good
> enough?

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

> ... defining _GNU_SOURCE...
For the love of all that is holy, and some that is not, don't do that.
-- Luca & Mans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090318/51a01243/attachment.pgp>



More information about the ffmpeg-devel mailing list