diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-12-30 00:19:43 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-12-30 00:19:43 +0000 |
commit | 282c9d6e1b17f6d586d93a96eea9cb805d69d3b1 (patch) | |
tree | bbe532b82e591d020ff9f049356344d17e4beee4 /apps | |
parent | 3b1f61a1ff4297e9972b08797495c08dd0c22109 (diff) |
mpegplayer: Whoa. Left out a buffer wrap calculation when reading elementary streams.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15980 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_parser.c b/apps/plugins/mpegplayer/mpeg_parser.c index c996f9540d..d4b0ff10fb 100644 --- a/apps/plugins/mpegplayer/mpeg_parser.c +++ b/apps/plugins/mpegplayer/mpeg_parser.c @@ -974,6 +974,8 @@ static int parse_elementary(struct stream *str, enum stream_parse_mode type) } p = str->curr_packet_end; + if (p >= disk_buf.end) + p -= disk_buf.size; break; /* STREAM_PM_STREAMING: */ |