Commit c3df4a3b authored by Måns Rullgård's avatar Måns Rullgård

rmdec: fix crash at end of file

Originally committed as revision 18018 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9a10a076
......@@ -774,7 +774,8 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
flags = (seq++ == 1) ? 2 : 0;
} else {
len=sync(s, &timestamp, &flags, &i, &pos);
st = s->streams[i];
if (len > 0)
st = s->streams[i];
}
if(len<0 || url_feof(s->pb))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment