[Ffmpeg-cvslog] r7671 - trunk/libavcodec/h264.c
michael
subversion
Tue Jan 23 20:32:27 CET 2007
Author: michael
Date: Tue Jan 23 20:32:26 2007
New Revision: 7671
Modified:
trunk/libavcodec/h264.c
Log:
fix segfault with darkkben.free.fr/corrupted_h264.mp4
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c (original)
+++ trunk/libavcodec/h264.c Tue Jan 23 20:32:26 2007
@@ -4889,8 +4889,8 @@
if(total_coeff==0)
return 0;
- if(total_coeff<0) {
- av_log(h->s.avctx, AV_LOG_ERROR, "corrupted macroblock %d %d (total_coeff<0)\n", s->mb_x, s->mb_y);
+ if(total_coeff > (unsigned)max_coeff) {
+ av_log(h->s.avctx, AV_LOG_ERROR, "corrupted macroblock %d %d (total_coeff=%d)\n", s->mb_x, s->mb_y, total_coeff);
return -1;
}
More information about the ffmpeg-cvslog
mailing list