Mercurial > SDL_sound_CoreAudio
diff 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 |
line wrap: on
line diff
--- a/decoders/mpglib/layer3.c Thu Jul 11 05:28:33 2002 +0000 +++ b/decoders/mpglib/layer3.c Thu Jul 11 05:28:52 2002 +0000 @@ -954,8 +954,11 @@ if(part2remain > 0) getbits(part2remain); else if(part2remain < 0) { - /* !!! FIXME: Need formatting: by %d bits!\n",-part2remain);*/ - BAIL_MACRO("MPGLIB: Can't rewind stream!", 1); /* -> error */ + char err[128]; + snprintf(err, sizeof (err), + "MPGLIB: Can't rewind stream by %d bits!", + -part2remain); + BAIL_MACRO(err, 1); /* -> error */ } return 0; } @@ -1365,8 +1368,11 @@ if(part2remain > 0 ) getbits(part2remain); else if(part2remain < 0) { - /* !!! FIXME: Need formatting: by %d bits!\n",-part2remain);*/ - BAIL_MACRO("MPGLIB: Can't rewind stream!", 1); /* -> error */ + char err[128]; + snprintf(err, sizeof (err), + "MPGLIB: Can't rewind stream by %d bits!", + -part2remain); + BAIL_MACRO(err, 1); /* -> error */ } return 0; }