[Ffmpeg-devel] gcc 2.95 doesn't like snow.c

François Revol revol
Fri Dec 30 17:36:00 CET 2005

libavcodec/snow.c:3174: invalid use of non-lvalue array

either it's a gcc3 extention or whatever, but it doesn't work here.
I worked around it that way:

- check_block(s, mb_x, mb_y, (int[2]){block->mx, block->my}, 0, &
+ check_block(s, mb_x, mb_y, ({int p[2] = {block->mx, block->my}; p;}), 
0, &best_rd);

... 9 others like this

If you don't have any better fix I'll commit it next week.


More information about the ffmpeg-devel mailing list