[Ffmpeg-cvslog] r7656 - trunk/libavformat/asf.c
michael
subversion
Mon Jan 22 22:33:27 CET 2007
Author: michael
Date: Mon Jan 22 22:33:26 2007
New Revision: 7656
Modified:
trunk/libavformat/asf.c
Log:
better padsize check
Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c (original)
+++ trunk/libavformat/asf.c Mon Jan 22 22:33:26 2007
@@ -504,7 +504,7 @@
av_log(s, AV_LOG_ERROR, "invalid packet_length %d at:%"PRId64"\n", packet_length, url_ftell(pb));
return -1;
}
- if(padsize >= (1U<<29)){
+ if(padsize >= packet_length){
av_log(s, AV_LOG_ERROR, "invalid padsize %d at:%"PRId64"\n", padsize, url_ftell(pb));
return -1;
}
More information about the ffmpeg-cvslog
mailing list