comparison truemotion1.c @ 4476:16e85254118f libavcodec

fix use of uninitialized variables
author faust3
date Mon, 05 Feb 2007 11:57:36 +0000
parents 05e932ddaaa9
children ce643a22f049
comparison
equal deleted inserted replaced
4475:65e3ae093faf 4476:16e85254118f
372 } else /* Version 1 */ 372 } else /* Version 1 */
373 s->flags = FLAG_KEYFRAME; 373 s->flags = FLAG_KEYFRAME;
374 374
375 if (s->flags & FLAG_SPRITE) { 375 if (s->flags & FLAG_SPRITE) {
376 av_log(s->avctx, AV_LOG_INFO, "SPRITE frame found, please report the sample to the developers\n"); 376 av_log(s->avctx, AV_LOG_INFO, "SPRITE frame found, please report the sample to the developers\n");
377 /* FIXME header.width, height, xoffset and yoffset aren't initialized */
378 #if 0
377 s->w = header.width; 379 s->w = header.width;
378 s->h = header.height; 380 s->h = header.height;
379 s->x = header.xoffset; 381 s->x = header.xoffset;
380 s->y = header.yoffset; 382 s->y = header.yoffset;
383 #else
384 return -1;
385 #endif
381 } else { 386 } else {
382 s->w = header.xsize; 387 s->w = header.xsize;
383 s->h = header.ysize; 388 s->h = header.ysize;
384 if (header.header_type < 2) { 389 if (header.header_type < 2) {
385 if ((s->w < 213) && (s->h >= 176)) 390 if ((s->w < 213) && (s->h >= 176))