Changeset 298 for libmpc/trunk/libmpcdec/streaminfo.c
- Timestamp:
- 04/26/07 22:36:43 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/streaminfo.c
r265 r298 62 62 mpc_get_encoder_string(mpc_streaminfo* si) 63 63 { 64 if (si->stream_version < 8) { 65 if (si->encoder_version == 0) { 64 int ver = si->encoder_version; 65 if (si->stream_version >= 8) 66 ver = (si->encoder_version >> 24) * 100 + ((si->encoder_version >> 16) & 0xFF); 67 if (ver <= 116) { 68 if (ver == 0) { 66 69 sprintf(si->encoder, "Buschmann 1.7.0...9, Klemm 0.90...1.05"); 67 70 } else { 68 switch ( si->encoder_version% 10) {71 switch (ver % 10) { 69 72 case 0: 70 sprintf(si->encoder, "Release %u.%u", si->encoder_version/ 100,71 si->encoder_version/ 10 % 10);73 sprintf(si->encoder, "Release %u.%u", ver / 100, 74 ver / 10 % 10); 72 75 break; 73 76 case 2: case 4: case 6: case 8: 74 sprintf(si->encoder, "Beta %u.%02u", si->encoder_version/ 100,75 si->encoder_version% 100);77 sprintf(si->encoder, "Beta %u.%02u", ver / 100, 78 ver % 100); 76 79 break; 77 80 default: 78 81 sprintf(si->encoder, "--Alpha-- %u.%02u", 79 si->encoder_version / 100, si->encoder_version% 100);82 ver / 100, ver % 100); 80 83 break; 81 84 }
Note: See TracChangeset
for help on using the changeset viewer.