updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / madplay / madplay-lame-tag-0.15.2b.patch
blob30b7b91eb1022d671c62af21f599248c912435a2
2 The following patch corrects a problem in madplay that can cause it to fail to
3 decode some frames encoded with LAME (ancillary data contains a LAME tag
4 marker, but without any tag data).
6 Robert Leslie <rob@mars.org>
7 20-Nov-2006
10 --- player.c.orig 2006-11-20 00:42:12.609647678 -0800
11 +++ player.c 2006-11-20 00:43:05.741871716 -0800
12 @@ -1156,8 +1156,10 @@
13 stream->next_frame - stream->this_frame)
14 player->stats.total_bytes -= frame_size;
16 - return (player->options & PLAYER_OPTION_SHOWTAGSONLY) ?
17 - MAD_FLOW_STOP : MAD_FLOW_IGNORE;
18 + if (player->options & PLAYER_OPTION_SHOWTAGSONLY)
19 + return MAD_FLOW_STOP;
20 + else if (tag->flags)
21 + return MAD_FLOW_IGNORE;
23 else if (player->options & PLAYER_OPTION_SHOWTAGSONLY)
24 return MAD_FLOW_STOP;