[Ffmpeg-cvslog] r8714 - trunk/libavcodec/h264.c
benoit
subversion
Wed Apr 11 16:04:48 CEST 2007
Author: benoit
Date: Wed Apr 11 16:04:47 2007
New Revision: 8714
Modified:
trunk/libavcodec/h264.c
Log:
add a check before find_frame_end call
Patch by Limin Wang % lance P lmwang A gmail P com %
Original thread:
date: 04/09/2007 03:54 PM
subject: [Ffmpeg-devel] [PATCH] fix segment fault in h264_parse if buf_size is zero
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c (original)
+++ trunk/libavcodec/h264.c Wed Apr 11 16:04:47 2007
@@ -8059,7 +8059,8 @@ static int h264_parse(AVCodecParserConte
return buf_size;
}
- if(next<0){
+ if(next<0 && next != END_NOT_FOUND){
+ assert(pc->last_index + next >= 0 );
find_frame_end(h, &pc->buffer[pc->last_index + next], -next); //update state
}
}
More information about the ffmpeg-cvslog
mailing list