# HG changeset patch # User faust3 # Date 1170676656 0 # Node ID 16e85254118f646cb9b505c6e40556da1528d9e8 # Parent 65e3ae093faf7cba2aa7f149325fcd7f0f708687 fix use of uninitialized variables diff -r 65e3ae093faf -r 16e85254118f truemotion1.c --- a/truemotion1.c Mon Feb 05 09:11:10 2007 +0000 +++ b/truemotion1.c Mon Feb 05 11:57:36 2007 +0000 @@ -374,10 +374,15 @@ if (s->flags & FLAG_SPRITE) { av_log(s->avctx, AV_LOG_INFO, "SPRITE frame found, please report the sample to the developers\n"); + /* FIXME header.width, height, xoffset and yoffset aren't initialized */ +#if 0 s->w = header.width; s->h = header.height; s->x = header.xoffset; s->y = header.yoffset; +#else + return -1; +#endif } else { s->w = header.xsize; s->h = header.ysize;