Changeset 442
- Timestamp:
- 03/31/09 14:24:41 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/mpcgain/mpcgain.c
r440 r442 44 44 #define MPCGAIN_MAJOR 0 45 45 #define MPCGAIN_MINOR 9 46 #define MPCGAIN_BUILD 246 #define MPCGAIN_BUILD 3 47 47 48 48 #define _cat(a,b,c) #a"."#b"."#c … … 270 270 r.count = 8; 271 271 272 size = mpc_bits_get_block(&r, &b); 273 274 while (memcmp(b.key, "RG", 2) != 0 ) { 272 for(;;) { 273 size = mpc_bits_get_block(&r, &b); 274 if (mpc_check_key(b.key) != MPC_STATUS_OK) break; 275 276 if (memcmp(b.key, "RG", 2) == 0) break; 275 277 header_pos[j] += b.size + size; 276 278 fseek(file, header_pos[j], SEEK_SET); … … 278 280 r.buff = buffer; 279 281 r.count = 8; 280 size = mpc_bits_get_block(&r, &b); 281 } 282 282 } 283 284 if (memcmp(b.key, "RG", 2) != 0 || b.size < 9) { //check for the loop above having aborted without finding the packet we want to update 285 fprintf(stderr, "Unsupported file format or corrupted file : %s\n", argv[j + 1]); 286 fclose(file); 287 continue; 288 } 283 289 header_pos[j] += size; 284 290
Note: See TracChangeset
for help on using the changeset viewer.