Mercurial > SDL_sound_CoreAudio
comparison decoders/mpglib/layer3.c @ 400:9d0b5ec9cc26
FIXME cleanups.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 11 Jul 2002 05:28:52 +0000 |
parents | fb519e6028e3 |
children | 5b00e43ec23c |
comparison
equal
deleted
inserted
replaced
399:e435bdcad552 | 400:9d0b5ec9cc26 |
---|---|
952 part2remain -= 16; | 952 part2remain -= 16; |
953 } | 953 } |
954 if(part2remain > 0) | 954 if(part2remain > 0) |
955 getbits(part2remain); | 955 getbits(part2remain); |
956 else if(part2remain < 0) { | 956 else if(part2remain < 0) { |
957 /* !!! FIXME: Need formatting: by %d bits!\n",-part2remain);*/ | 957 char err[128]; |
958 BAIL_MACRO("MPGLIB: Can't rewind stream!", 1); /* -> error */ | 958 snprintf(err, sizeof (err), |
959 "MPGLIB: Can't rewind stream by %d bits!", | |
960 -part2remain); | |
961 BAIL_MACRO(err, 1); /* -> error */ | |
959 } | 962 } |
960 return 0; | 963 return 0; |
961 } | 964 } |
962 | 965 |
963 #if 0 | 966 #if 0 |
1363 part2remain -= 16; | 1366 part2remain -= 16; |
1364 } | 1367 } |
1365 if(part2remain > 0 ) | 1368 if(part2remain > 0 ) |
1366 getbits(part2remain); | 1369 getbits(part2remain); |
1367 else if(part2remain < 0) { | 1370 else if(part2remain < 0) { |
1368 /* !!! FIXME: Need formatting: by %d bits!\n",-part2remain);*/ | 1371 char err[128]; |
1369 BAIL_MACRO("MPGLIB: Can't rewind stream!", 1); /* -> error */ | 1372 snprintf(err, sizeof (err), |
1373 "MPGLIB: Can't rewind stream by %d bits!", | |
1374 -part2remain); | |
1375 BAIL_MACRO(err, 1); /* -> error */ | |
1370 } | 1376 } |
1371 return 0; | 1377 return 0; |
1372 } | 1378 } |
1373 #endif | 1379 #endif |
1374 | 1380 |