[Ffmpeg-cvslog] r7822 - trunk/libavcodec/truemotion1.c

faust3 subversion
Mon Feb 5 12:57:36 CET 2007


Author: faust3
Date: Mon Feb  5 12:57:36 2007
New Revision: 7822

Modified:
   trunk/libavcodec/truemotion1.c

Log:
fix use of uninitialized variables

Modified: trunk/libavcodec/truemotion1.c
==============================================================================
--- trunk/libavcodec/truemotion1.c	(original)
+++ trunk/libavcodec/truemotion1.c	Mon Feb  5 12:57:36 2007
@@ -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;




More information about the ffmpeg-cvslog mailing list