From: Diego Biurrun Date: Tue, 24 Feb 2009 14:13:46 +0000 (+0000) Subject: Mark two variables with av_uninit to avoid false positive gcc warnings. X-Git-Tag: v0.5~190 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acced32d08a74e20956e3f9ea757d700d400a16a;p=platform%2Fupstream%2Flibav.git Mark two variables with av_uninit to avoid false positive gcc warnings. Originally committed as revision 17552 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 6ea09b086..4537fb179 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3259,13 +3259,13 @@ static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){ MpegEncContext * const s = &h->s; int i, j; int current_ref_assigned=0; - Picture *pic; + Picture *av_uninit(pic); if((s->avctx->debug&FF_DEBUG_MMCO) && mmco_count==0) av_log(h->s.avctx, AV_LOG_DEBUG, "no mmco here\n"); for(i=0; iavctx->debug&FF_DEBUG_MMCO) av_log(h->s.avctx, AV_LOG_DEBUG, "mmco:%d %d %d\n", h->mmco[i].opcode, h->mmco[i].short_pic_num, h->mmco[i].long_arg);