# HG changeset patch # User diego # Date 1236296332 0 # Node ID 53123c63f82a15e1eb6c182d7b359063810c5d66 # Parent 5001f33c30f31b3eddba00be044e11cf7366a97a Mark variables "j" and "structure" in execute_ref_pic_marking() as av_uninit to work around false positive 'may be used uninitialized' warnings. diff -r 5001f33c30f3 -r 53123c63f82a h264.c --- a/h264.c Thu Mar 05 23:10:22 2009 +0000 +++ b/h264.c Thu Mar 05 23:38:52 2009 +0000 @@ -3269,7 +3269,7 @@ */ static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){ MpegEncContext * const s = &h->s; - int i, j; + int i, av_uninit(j); int current_ref_assigned=0; Picture *av_uninit(pic); @@ -3277,7 +3277,7 @@ 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);