mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
rmdec: fix crash at end of file
Originally committed as revision 18018 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9a10a0767c
commit
c3df4a3bfe
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user