[FFmpeg-cvslog] r18018 - trunk/libavformat/rmdec.c
mru
subversion
Mon Mar 16 21:22:39 CET 2009
Author: mru
Date: Mon Mar 16 21:22:39 2009
New Revision: 18018
Log:
rmdec: fix crash at end of file
Modified:
trunk/libavformat/rmdec.c
Modified: trunk/libavformat/rmdec.c
==============================================================================
--- trunk/libavformat/rmdec.c Mon Mar 16 17:24:38 2009 (r18017)
+++ trunk/libavformat/rmdec.c Mon Mar 16 21:22:39 2009 (r18018)
@@ -774,7 +774,8 @@ static int rm_read_packet(AVFormatContex
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))
More information about the ffmpeg-cvslog
mailing list