[FFmpeg-cvslog] r14869 - trunk/libavformat/matroskadec.c
aurel
subversion
Thu Aug 21 00:30:16 CEST 2008
Author: aurel
Date: Thu Aug 21 00:30:15 2008
New Revision: 14869
Log:
matroskadec: stop parsing when skipping en element crossing over the end of file
Modified:
trunk/libavformat/matroskadec.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c (original)
+++ trunk/libavformat/matroskadec.c Thu Aug 21 00:30:15 2008
@@ -765,7 +765,7 @@ static int ebml_parse_elem(MatroskaDemux
return ebml_parse_nest(matroska, syntax->def.n, data);
case EBML_PASS: return ebml_parse_id(matroska, syntax->def.n, id, data);
case EBML_STOP: *(int *)data = 1; return 1;
- default: url_fskip(pb, length); return 0;
+ default: return url_fseek(pb,length,SEEK_CUR)<0 ? AVERROR(EIO) : 0;
}
if (res == AVERROR_INVALIDDATA)
av_log(matroska->ctx, AV_LOG_ERROR, "Invalid element\n");
More information about the ffmpeg-cvslog
mailing list