Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e11d1337
Commit
e11d1337
authored
Mar 06, 2015
by
Hannes Domani
Committed by
Jean-Baptiste Kempf
Mar 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: gme: don't skip negative (fixes #14088)
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
54de0c4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
contrib/src/gme/rules.mak
contrib/src/gme/rules.mak
+1
-0
contrib/src/gme/skip-underrun.patch
contrib/src/gme/skip-underrun.patch
+11
-0
No files found.
contrib/src/gme/rules.mak
View file @
e11d1337
...
...
@@ -14,6 +14,7 @@ game-music-emu: game-music-emu-$(GME_VERSION).tar.bz2 .sum-gme
$(UNPACK)
$(APPLY)
$(SRC)
/gme/gme-static.patch
$(APPLY)
$(SRC)
/gme/gme-quotes.patch
$(APPLY)
$(SRC)
/gme/skip-underrun.patch
$(MOVE)
.gme
:
game-music-emu toolchain.cmake
...
...
contrib/src/gme/skip-underrun.patch
0 → 100644
View file @
e11d1337
--- a/gme/Fir_Resampler.cpp 2013-03-17 02:38:55.000000000 +0100
+++ b/gme/Fir_Resampler.cpp 2015-03-06 14:33:01.061577900 +0100
@@ -188,6 +188,8 @@
{
int remain = write_pos - buf.begin();
int max_count = remain - width_ * stereo;
+ if ( max_count < 0 )
+ return 0;
if ( count > max_count )
count = max_count;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment