projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
487747d
)
fix use of uninitialized variables
author
Sascha Sommer
<saschasommer@freenet.de>
Mon, 5 Feb 2007 11:57:36 +0000
(11:57 +0000)
committer
Sascha Sommer
<saschasommer@freenet.de>
Mon, 5 Feb 2007 11:57:36 +0000
(11:57 +0000)
Originally committed as revision 7822 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/truemotion1.c
patch
|
blob
|
history
diff --git
a/libavcodec/truemotion1.c
b/libavcodec/truemotion1.c
index
4b7aa97
..
f1673a8
100644
(file)
--- 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;