Skip to content

Commit

Permalink
engine: soundlib: mp3: fix check for Unicode in ID3v2.4 TXXX tag
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Aug 30, 2023
1 parent abd7f3d commit aeece35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/common/soundlib/snd_mp3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aeece35

Please sign in to comment.