Ignore:
Timestamp:
10/06/06 18:51:07 (16 years ago)
Author:
zorg
Message:

Added primitive mpcdec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpcdec/branches/zorg/src/streaminfo.c

    r68 r70  
    5151{
    5252    return profile >= sizeof versionNames / sizeof *versionNames ? na : versionNames[profile];
    53 }
    54 
    55 void
    56 mpc_streaminfo_init(mpc_streaminfo* si)
    57 {
    58     memset(si, 0, sizeof *si);
    5953}
    6054
     
    115109// reads file header and tags
    116110mpc_status
    117 mpc_streaminfo_read(mpc_streaminfo * si, mpc_reader *p_reader)
     111mpc_streaminfo_init(mpc_streaminfo * si, mpc_reader *p_reader)
    118112{
    119113    mpc_uint32_t headerData[8]; int err;
    120114
     115    memset(si, 0, sizeof *si);
    121116    // get header position
    122117    err = si->header_position = mpc_skip_id3v2(p_reader);
     
    136131
    137132    err = memcmp(headerData, "MP+", 3);
    138     if(!err) return MPC_STATUS_INVALIDSV;
     133    if(err) return MPC_STATUS_INVALIDSV;
    139134
    140135#ifndef MPC_LITTLE_ENDIAN
Note: See TracChangeset for help on using the changeset viewer.