OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a10a07
)
rmdec: fix crash at end of file
author
Måns Rullgård
<mans@mansr.com>
Mon, 16 Mar 2009 20:22:39 +0000
(20:22 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Mon, 16 Mar 2009 20:22:39 +0000
(20:22 +0000)
Originally committed as revision 18018 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rmdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rmdec.c
b/libavformat/rmdec.c
index
4ec6d88
..
a1c0906
100644
(file)
--- a/
libavformat/rmdec.c
+++ b/
libavformat/rmdec.c
@@
-774,7
+774,8
@@
static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
flags = (seq++ == 1) ? 2 : 0;
} else {
len=sync(s, ×tamp, &flags, &i, &pos);
- st = s->streams[i];
+ if (len > 0)
+ st = s->streams[i];
}
if(len<0 || url_feof(s->pb))