Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
73a2214b
Commit
73a2214b
authored
Mar 16, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contribs: fix a crash in ffmpeg/ape
parent
fd56030a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
extras/contrib/src/Patches/libavformat-ape.c.patch
extras/contrib/src/Patches/libavformat-ape.c.patch
+17
-0
extras/contrib/src/contrib-src.mak
extras/contrib/src/contrib-src.mak
+1
-0
No files found.
extras/contrib/src/Patches/libavformat-ape.c.patch
0 → 100644
View file @
73a2214b
X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavformat%2Fape.c;h=187c9865a4fce398c7a4b4b19aad0a59b281a469;hp=2de47ef483245372a9a3c56656cd48a30a383856;hb=1c31b26bdf66879a46a7a3e340da815c1b2125a8;hpb=6947b0c42e0649f0c8355442d1732d642e467902
diff --git a/libavformat/ape.c b/libavformat/ape.c
index 2de47ef..187c986 100644
--- a/libavformat/ape.c
+++ b/libavformat/ape.c
@@ -242,6 +242,10 @@
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
avio_seek(pb, ape->wavheaderlength, SEEK_CUR);
}
+ if(!ape->totalframes){
+ av_log(s, AV_LOG_ERROR, "No frames in the file!\n");
+ return AVERROR(EINVAL);
+ }
if(ape->totalframes > UINT_MAX / sizeof(APEFrame)){
av_log(s, AV_LOG_ERROR, "Too many frames: %d\n", ape->totalframes);
return -1;
extras/contrib/src/contrib-src.mak
View file @
73a2214b
...
@@ -1103,6 +1103,7 @@ ifdef HAVE_WIN32
...
@@ -1103,6 +1103,7 @@ ifdef HAVE_WIN32
sed
-i
"s/std=c99/std=gnu99/"
ffmpeg/configure
sed
-i
"s/std=c99/std=gnu99/"
ffmpeg/configure
endif
endif
(
cd
ffmpeg
;
patch
-p1
< ../Patches/ffmpeg-h264-ssse3.patch
)
(
cd
ffmpeg
;
patch
-p1
< ../Patches/ffmpeg-h264-ssse3.patch
)
(
cd
ffmpeg
;
patch
-p1
< ../Patches/libavformat-ape.c.patch
)
touch
$@
touch
$@
ffmpeg-$(FFMPEG_VERSION).tar.gz
:
ffmpeg-$(FFMPEG_VERSION).tar.gz
:
...
...
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