summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-12-30 00:19:43 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-12-30 00:19:43 +0000
commit282c9d6e1b17f6d586d93a96eea9cb805d69d3b1 (patch)
treebbe532b82e591d020ff9f049356344d17e4beee4
parent3b1f61a1ff4297e9972b08797495c08dd0c22109 (diff)
downloadrockbox-282c9d6e1b17f6d586d93a96eea9cb805d69d3b1.tar.gz
rockbox-282c9d6e1b17f6d586d93a96eea9cb805d69d3b1.zip
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
-rw-r--r--apps/plugins/mpegplayer/mpeg_parser.c2
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)
974 } 974 }
975 975
976 p = str->curr_packet_end; 976 p = str->curr_packet_end;
977 if (p >= disk_buf.end)
978 p -= disk_buf.size;
977 break; 979 break;
978 /* STREAM_PM_STREAMING: */ 980 /* STREAM_PM_STREAMING: */
979 981