OSDN Git Service

Initialize the "stc" variable before using it in ff_find_start_code()
authorLuca Abeni <lucabe72@email.it>
Thu, 23 Aug 2007 07:02:27 +0000 (07:02 +0000)
committerLuca Abeni <lucabe72@email.it>
Thu, 23 Aug 2007 07:02:27 +0000 (07:02 +0000)
Originally committed as revision 10193 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/cavsdec.c

index 3dc53dd..a9e4cc2 100644 (file)
@@ -621,7 +621,7 @@ static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size,
     const uint8_t *buf_end;
     const uint8_t *buf_ptr;
     AVFrame *picture = data;
-    uint32_t stc;
+    uint32_t stc = -1;
 
     s->avctx = avctx;