changeset 9144:53123c63f82a libavcodec

Mark variables "j" and "structure" in execute_ref_pic_marking() as av_uninit to work around false positive 'may be used uninitialized' warnings.
author diego
date Thu, 05 Mar 2009 23:38:52 +0000
parents 5001f33c30f3
children de31b10455cc
files h264.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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; i<mmco_count; i++){
-        int structure, av_uninit(frame_num);
+        int av_uninit(structure), av_uninit(frame_num);
         if(s->avctx->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);