diff options
author | Sascha Sommer <saschasommer@freenet.de> | 2007-02-05 14:57:36 +0300 |
---|---|---|
committer | Sascha Sommer <saschasommer@freenet.de> | 2007-02-05 14:57:36 +0300 |
commit | 8274e4224ad5e05781a60b185f747f45830c7e8a (patch) | |
tree | e7e8b9402049c1241d961ea44e2cf985d6a8a457 /libavcodec/truemotion1.c | |
parent | 487747de57712fbe548ce6bf4ada7f7643370092 (diff) |
fix use of uninitialized variables
Originally committed as revision 7822 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/truemotion1.c')
-rw-r--r-- | libavcodec/truemotion1.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c index 4b7aa976df..f1673a80aa 100644 --- a/libavcodec/truemotion1.c +++ b/libavcodec/truemotion1.c @@ -374,10 +374,15 @@ static int truemotion1_decode_header(TrueMotion1Context *s) 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; |