rmdec: fix crash at end of file

Originally committed as revision 18018 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Måns Rullgård 16 years ago
parent 9a10a0767c
commit c3df4a3bfe
  1. 1
      libavformat/rmdec.c

@ -774,6 +774,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
flags = (seq++ == 1) ? 2 : 0; flags = (seq++ == 1) ? 2 : 0;
} else { } else {
len=sync(s, &timestamp, &flags, &i, &pos); len=sync(s, &timestamp, &flags, &i, &pos);
if (len > 0)
st = s->streams[i]; st = s->streams[i];
} }

Loading…
Cancel
Save