From aeece352911160b611fd4572b82170c4a902832f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 30 Aug 2023 22:57:39 +0300 Subject: [PATCH] engine: soundlib: mp3: fix check for Unicode in ID3v2.4 TXXX tag --- engine/common/soundlib/snd_mp3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/soundlib/snd_mp3.c b/engine/common/soundlib/snd_mp3.c index 9d3d15fb..062a8bdb 100644 --- a/engine/common/soundlib/snd_mp3.c +++ b/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; 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 )); value_len = frame_length - (1 + key_len + 1);