[MPlayer-users] ffv1.c:465: internal compiler error

Giacomo Comes comes at naic.edu
Mon Aug 2 16:33:03 CEST 2004


It's a bug of gcc 3.3.x

There are two fixes around:
http://mplayerhq.hu/pipermail/mplayer-users/2004-July/046975.html
and
http://mplayerhq.hu/pipermail/mplayer-users/2004-July/046946.html

I'm also attaching a patch that you can use directly.

Giacomo

On Mon, Aug 02, 2004 at 03:47:23PM +0800, Mike wrote:
> I'm getting an error compiling current CVS.
> I can work around it by manually repeating that operation, without the 
> '-O4' flag.  Is there a known problem with the compiler?
> What should be done here?
> 
> Compiler is  gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk).
> 'make' output:
> 
> cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=athlon-4 
> -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_AV_CONFIG_H -I.. 
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ffv1.o ffv1.c
> ffv1.c: In function `encode_rgb_frame':
> 
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users

-- 
-------------- next part --------------
--- libavcodec/ffv1.c.ori	2004-07-19 13:13:13.000000000 -0400
+++ libavcodec/ffv1.c	2004-07-19 13:13:27.000000000 -0400
@@ -453,7 +453,7 @@
 
 static void encode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h, int stride){
     int x, y, p, i;
-    const int ring_size=2;
+    int ring_size=2;
     int_fast16_t sample_buffer[3][ring_size][w+6], *sample[3][ring_size];
     s->run_index=0;


More information about the MPlayer-users mailing list