[Ffmpeg-cvslog] r7076 - trunk/libavformat/nutdec.c
michael
subversion
Tue Nov 14 23:24:11 CET 2006
Author: michael
Date: Tue Nov 14 23:24:10 2006
New Revision: 7076
Modified:
trunk/libavformat/nutdec.c
Log:
check for frames with 2*size > max_dist and no crc
Modified: trunk/libavformat/nutdec.c
==============================================================================
--- trunk/libavformat/nutdec.c (original)
+++ trunk/libavformat/nutdec.c Tue Nov 14 23:24:10 2006
@@ -687,6 +687,9 @@
get_v(bc);
if(flags&FLAG_CHECKSUM){
get_be32(bc); //FIXME check this
+ }else if(size > 2*nut->max_distance){
+ av_log(s, AV_LOG_ERROR, "frame size > 2max_distance and no checksum\n");
+ return -1;
}
*flags_ret= flags;
More information about the ffmpeg-cvslog
mailing list