Changeset 85 for libmpcdec/branches/zorg/src
- Timestamp:
- 11/03/06 00:10:26 (18 years ago)
- Location:
- libmpcdec/branches/zorg/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpcdec/branches/zorg/src/mpc_decoder.c
r81 r85 262 262 case 0x07: 263 263 case 0x17: 264 mpc_decoder_read_bitstream_sv7(d, FALSE);264 mpc_decoder_read_bitstream_sv7(d, MPC_FALSE); 265 265 break; 266 266 default: … … 297 297 // decode data and check for validity of frame 298 298 FrameBitCnt = mpc_decoder_bits_read(d); 299 mpc_decoder_read_bitstream_sv7(d, FALSE);299 mpc_decoder_read_bitstream_sv7(d, MPC_FALSE); 300 300 d->FrameWasValid = mpc_decoder_bits_read(d) - FrameBitCnt == FwdJumpInfo; 301 301 break; … … 315 315 } 316 316 FrameBitCnt = mpc_decoder_bits_read(d); 317 mpc_decoder_read_bitstream_sv7(d, FALSE);317 mpc_decoder_read_bitstream_sv7(d, MPC_FALSE); 318 318 d->BlockBits -= mpc_decoder_bits_read(d) - FrameBitCnt; 319 319 d->FrameWasValid = 1; … … 347 347 } else { 348 348 mpc_decoder_bitstream_read(d, 20); 349 mpc_decoder_read_bitstream_sv7(d, FALSE);349 mpc_decoder_read_bitstream_sv7(d, MPC_FALSE); 350 350 mpc_decoder_requantisierung(d, d->Max_Band); 351 351 } … … 729 729 } 730 730 731 if (seeking == TRUE)731 if (seeking == MPC_TRUE) 732 732 return; 733 733 … … 1002 1002 if (fwd <= d->DecodedFrames + d->seeking_window) { 1003 1003 if (d->StreamVersion >= 7) 1004 mpc_decoder_read_bitstream_sv7(d, TRUE);1004 mpc_decoder_read_bitstream_sv7(d, MPC_TRUE); 1005 1005 else 1006 return FALSE;1006 return MPC_FALSE; 1007 1007 } 1008 1008 mpc_decoder_bitstream_jump(d, FwdJumpInfo - mpc_decoder_bits_read(d)); … … 1012 1012 } 1013 1013 1014 return TRUE;1015 } 1014 return MPC_TRUE; 1015 } -
libmpcdec/branches/zorg/src/mpc_reader.c
r81 r85 59 59 { 60 60 mpc_reader_stdio *p_stdio = (mpc_reader_stdio*) p_reader->data; 61 if(p_stdio->magic != STDIO_MAGIC) return FALSE;62 return p_stdio->is_seekable ? fseek(p_stdio->p_file, offset, SEEK_SET) == 0 : FALSE;61 if(p_stdio->magic != STDIO_MAGIC) return MPC_FALSE; 62 return p_stdio->is_seekable ? fseek(p_stdio->p_file, offset, SEEK_SET) == 0 : MPC_FALSE; 63 63 } 64 64 … … 83 83 { 84 84 mpc_reader_stdio *p_stdio = (mpc_reader_stdio*) p_reader->data; 85 if(p_stdio->magic != STDIO_MAGIC) return FALSE;85 if(p_stdio->magic != STDIO_MAGIC) return MPC_FALSE; 86 86 return p_stdio->is_seekable; 87 87 } … … 101 101 p_stdio->p_file = fopen(filename, "rb"); 102 102 if(!p_stdio->p_file) goto clean; 103 p_stdio->is_seekable = TRUE;103 p_stdio->is_seekable = MPC_TRUE; 104 104 err = fseek(p_stdio->p_file, 0, SEEK_END); 105 105 if(err < 0) goto clean;
Note: See TracChangeset
for help on using the changeset viewer.