Mercurial > libavcodec.hg
changeset 4476:16e85254118f libavcodec
fix use of uninitialized variables
author | faust3 |
---|---|
date | Mon, 05 Feb 2007 11:57:36 +0000 |
parents | 65e3ae093faf |
children | 87e943798698 |
files | truemotion1.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;