Commit 2587cee6 authored by mru's avatar mru

rmdec: fix crash at end of file

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18018 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 35ac4356
......@@ -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