"Ronald S. Bultje" <rsbul...@gmail.com> writes:

> Hi,
>
> On Tue, Jul 24, 2012 at 7:45 PM, Loren Merritt <lor...@u.washington.edu> 
> wrote:
>> -    long x, y;
>> -    uint32_t pixel;
>> +    uint32_t tmp;
>>
>> -    for (y = 0; y < h; y++) {
>> -        for (x = 0; x < w; x++) {
>> -            pixel = lowpass(frame_ant[x]<<8, src[x]<<16, temporal);
>> -            frame_ant[x] = ((pixel+0x1000007F)>>8);
>> -            dst[x]= ((pixel+0x10007FFF)>>16);
>> +    for (long y = 0; y < h; y++) {
>> +        for (long x = 0; x < w; x++) {
>
> Unfortunately, this won't compile on MSVC, please do declare the
> variables outside the loop.

Same goes for a number of other compilers.  It's unfortunate, but a
small price to pay for portability.

-- 
Måns Rullgård
m...@mansr.com
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to