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
- Segfault fixed when mpeg audio decoder returns a negative data_size.
Originally committed as revision 473 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Juanjo
23 years ago
parent
0edf8a7a65
commit
afc80f59a7
1 changed files
with
3 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
ffmpeg.c
+ 3
- 1
ffmpeg.c
View File
@@ -961,7 +961,9 @@ static int av_encode(AVFormatContext **output_files,
ptr, len);
ptr, len);
if (ret < 0)
if (ret < 0)
goto fail_decode;
goto fail_decode;
if (data_size == 0) {
/* Some bug in mpeg audio decoder gives */
/* data_size < 0, it seems they are overflows */
if (data_size <= 0) {
/* no audio frame */
/* no audio frame */
ptr += ret;
ptr += ret;
len -= ret;
len -= ret;
Write
Preview
Loading…
Cancel
Save