git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0edf8a7
)
- Segfault fixed when mpeg audio decoder returns a negative data_size.
author
Juanjo
<pulento@users.sourceforge.net>
Thu, 9 May 2002 02:32:22 +0000
(
02:32
+0000)
committer
Juanjo
<pulento@users.sourceforge.net>
Thu, 9 May 2002 02:32:22 +0000
(
02:32
+0000)
Originally committed as revision 473 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
84183d7
..
9990aef
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-961,7
+961,9
@@
static int av_encode(AVFormatContext **output_files,
ptr, len);
if (ret < 0)
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 */
ptr += ret;
len -= ret;