comparison mjpeg.c @ 3232:b9f906a0b0f8 libavcodec

fix gcc 2.95 compilation
author michael
date Wed, 29 Mar 2006 21:11:57 +0000
parents ad50f9ef5c6b
children d92263225a77
comparison
equal deleted inserted replaced
3231:037570194464 3232:b9f906a0b0f8
1271 s->last_dc[component] = val; 1271 s->last_dc[component] = val;
1272 block[0] = val; 1272 block[0] = val;
1273 /* AC coefs */ 1273 /* AC coefs */
1274 ac_vlc = &s->vlcs[1][ac_index]; 1274 ac_vlc = &s->vlcs[1][ac_index];
1275 i = 0; 1275 i = 0;
1276 OPEN_READER(re, &s->gb) 1276 {OPEN_READER(re, &s->gb)
1277 for(;;) { 1277 for(;;) {
1278 UPDATE_CACHE(re, &s->gb); 1278 UPDATE_CACHE(re, &s->gb);
1279 GET_VLC(code, re, &s->gb, s->vlcs[1][ac_index].table, 9, 2) 1279 GET_VLC(code, re, &s->gb, s->vlcs[1][ac_index].table, 9, 2)
1280 1280
1281 /* EOB */ 1281 /* EOB */
1308 } 1308 }
1309 j = s->scantable.permutated[i]; 1309 j = s->scantable.permutated[i];
1310 block[j] = level * quant_matrix[j]; 1310 block[j] = level * quant_matrix[j];
1311 } 1311 }
1312 } 1312 }
1313 CLOSE_READER(re, &s->gb) 1313 CLOSE_READER(re, &s->gb)}
1314 1314
1315 return 0; 1315 return 0;
1316 } 1316 }
1317 1317
1318 static int ljpeg_decode_rgb_scan(MJpegDecodeContext *s, int predictor, int point_transform){ 1318 static int ljpeg_decode_rgb_scan(MJpegDecodeContext *s, int predictor, int point_transform){