Browse Source

engine: soundlib: mp3: fix check for Unicode in ID3v2.4 TXXX tag

pull/2/head
Alibek Omarov 1 year ago
parent
commit
aeece35291
  1. 2
      engine/common/soundlib/snd_mp3.c

2
engine/common/soundlib/snd_mp3.c

@ -85,7 +85,7 @@ static qboolean Sound_ParseID3Frame( const did3v2_frame_t *frame, const byte *bu
string key, value; string key, value;
int32_t key_len, value_len; int32_t key_len, value_len;
if( buffer[0] == 0x00 || buffer[1] == 0x03 ) if( buffer[0] == 0x00 || buffer[0] == 0x03 )
{ {
key_len = Q_strncpy( key, &buffer[1], sizeof( key )); key_len = Q_strncpy( key, &buffer[1], sizeof( key ));
value_len = frame_length - (1 + key_len + 1); value_len = frame_length - (1 + key_len + 1);

Loading…
Cancel
Save