gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14177 - Extractor/src/plugins


From: gnunet
Subject: [GNUnet-SVN] r14177 - Extractor/src/plugins
Date: Fri, 14 Jan 2011 19:35:49 +0100

Author: grothoff
Date: 2011-01-14 19:35:49 +0100 (Fri, 14 Jan 2011)
New Revision: 14177

Modified:
   Extractor/src/plugins/thumbnailffmpeg_extractor.c
Log:
init

Modified: Extractor/src/plugins/thumbnailffmpeg_extractor.c
===================================================================
--- Extractor/src/plugins/thumbnailffmpeg_extractor.c   2011-01-14 18:27:18 UTC 
(rev 14176)
+++ Extractor/src/plugins/thumbnailffmpeg_extractor.c   2011-01-14 18:35:49 UTC 
(rev 14177)
@@ -415,7 +415,7 @@
   AVCodec *codec = NULL;
   AVFrame *frame = NULL;
   uint8_t *encoded_thumbnail;
-  int video_stream_index;
+  int video_stream_index = -1;
   int thumb_width;
   int thumb_height;
   int i;
@@ -495,7 +495,8 @@
       break;
     }
 
-  if ( (codec_ctx == NULL) || 
+  if ( (video_stream_index == -1) ||
+       (codec_ctx == NULL) || 
        (codec == NULL) ||
        (codec_ctx->width == 0) || 
        (codec_ctx->height == 0) )




reply via email to

[Prev in Thread] Current Thread [Next in Thread]