This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/libopenmpt: Check for avio_size() failure
Fixes CID1396850 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.3
Michael Niedermayer
9 years ago
parent
477ba8f939
commit
bd8201566d
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/libopenmpt.c
+ 1
- 1
libavformat/libopenmpt.c
View File
@@ -73,7 +73,7 @@ static int read_header_openmpt(AVFormatContext *s)
AVStream *st;
OpenMPTContext *openmpt = s->priv_data;
int64_t size = avio_size(s->pb);
if (
!
size)
if (size
<= 0
)
return AVERROR_INVALIDDATA;
char *buf = av_malloc(size);
int ret;
Write
Preview
Loading…
Cancel
Save