Changeset 70 for libmpcdec/branches/zorg/src/streaminfo.c
- Timestamp:
- 10/06/06 18:51:07 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpcdec/branches/zorg/src/streaminfo.c
r68 r70 51 51 { 52 52 return profile >= sizeof versionNames / sizeof *versionNames ? na : versionNames[profile]; 53 }54 55 void56 mpc_streaminfo_init(mpc_streaminfo* si)57 {58 memset(si, 0, sizeof *si);59 53 } 60 54 … … 115 109 // reads file header and tags 116 110 mpc_status 117 mpc_streaminfo_ read(mpc_streaminfo * si, mpc_reader *p_reader)111 mpc_streaminfo_init(mpc_streaminfo * si, mpc_reader *p_reader) 118 112 { 119 113 mpc_uint32_t headerData[8]; int err; 120 114 115 memset(si, 0, sizeof *si); 121 116 // get header position 122 117 err = si->header_position = mpc_skip_id3v2(p_reader); … … 136 131 137 132 err = memcmp(headerData, "MP+", 3); 138 if( !err) return MPC_STATUS_INVALIDSV;133 if(err) return MPC_STATUS_INVALIDSV; 139 134 140 135 #ifndef MPC_LITTLE_ENDIAN
Note: See TracChangeset
for help on using the changeset viewer.