OSDN Git Service

Fix r24445: Instead of needlessly initialising a variable, silence the warning.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 25 Jul 2010 14:49:45 +0000 (14:49 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 25 Jul 2010 14:49:45 +0000 (14:49 +0000)
Originally committed as revision 24498 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vp8.c

index 4fc5a4d..2d1b502 100644 (file)
@@ -1460,7 +1460,7 @@ static int vp8_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
     VP8Context *s = avctx->priv_data;
     int ret, mb_x, mb_y, i, y, referenced;
     enum AVDiscard skip_thresh;
-    AVFrame *curframe = NULL;
+    AVFrame *av_uninit(curframe);
 
     if ((ret = decode_frame_header(s, avpkt->data, avpkt->size)) < 0)
         return ret;