[FFmpeg-cvslog] r13273 - trunk/libavcodec/ffv1.c
cehoyos
subversion
Sat May 24 09:19:12 CEST 2008
Author: cehoyos
Date: Sat May 24 09:19:12 2008
New Revision: 13273
Log:
Fix compilation for buggy icc.
Modified:
trunk/libavcodec/ffv1.c
Modified: trunk/libavcodec/ffv1.c
==============================================================================
--- trunk/libavcodec/ffv1.c (original)
+++ trunk/libavcodec/ffv1.c Sat May 24 09:19:12 2008
@@ -768,7 +768,9 @@ static inline void decode_line(FFV1Conte
static void decode_plane(FFV1Context *s, uint8_t *src, int w, int h, int stride, int plane_index){
int x, y;
int_fast16_t sample_buffer[2][w+6];
- int_fast16_t *sample[2]= {sample_buffer[0]+3, sample_buffer[1]+3};
+ int_fast16_t *sample[2];
+ sample[0]=sample_buffer[0]+3;
+ sample[1]=sample_buffer[1]+3;
s->run_index=0;
@@ -795,10 +797,11 @@ static void decode_plane(FFV1Context *s,
static void decode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h, int stride){
int x, y, p;
int_fast16_t sample_buffer[3][2][w+6];
- int_fast16_t *sample[3][2]= {
- {sample_buffer[0][0]+3, sample_buffer[0][1]+3},
- {sample_buffer[1][0]+3, sample_buffer[1][1]+3},
- {sample_buffer[2][0]+3, sample_buffer[2][1]+3}};
+ int_fast16_t *sample[3][2];
+ for(x=0; x<3; x++){
+ sample[x][0] = sample_buffer[x][0]+3;
+ sample[x][1] = sample_buffer[x][1]+3;
+ }
s->run_index=0;
More information about the ffmpeg-cvslog
mailing list