comparison truemotion1.c @ 7006:48cfbc65d688 libavcodec

Fix reading an element after the array. Fixes CID27 RUN2
author michael
date Fri, 06 Jun 2008 00:32:31 +0000
parents c93570aeb3eb
children e943e1409077
comparison
equal deleted inserted replaced
7005:6e374f47da64 7006:48cfbc65d688
391 av_log(s->avctx, AV_LOG_INFO, "INTERPOLATION selected, please report the sample to the developers\n"); 391 av_log(s->avctx, AV_LOG_INFO, "INTERPOLATION selected, please report the sample to the developers\n");
392 } 392 }
393 } 393 }
394 } 394 }
395 395
396 if (header.compression > 17) { 396 if (header.compression >= 17) {
397 av_log(s->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", header.compression); 397 av_log(s->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", header.compression);
398 return -1; 398 return -1;
399 } 399 }
400 400
401 if ((header.deltaset != s->last_deltaset) || 401 if ((header.deltaset != s->last_deltaset) ||