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>
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)