Mercurial > libavcodec.hg
comparison h264.c @ 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 | 793cf8c68c4f |
children | bc064231dc43 |
comparison
equal
deleted
inserted
replaced
9143:5001f33c30f3 | 9144:53123c63f82a |
---|---|
3267 /** | 3267 /** |
3268 * Executes the reference picture marking (memory management control operations). | 3268 * Executes the reference picture marking (memory management control operations). |
3269 */ | 3269 */ |
3270 static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){ | 3270 static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){ |
3271 MpegEncContext * const s = &h->s; | 3271 MpegEncContext * const s = &h->s; |
3272 int i, j; | 3272 int i, av_uninit(j); |
3273 int current_ref_assigned=0; | 3273 int current_ref_assigned=0; |
3274 Picture *av_uninit(pic); | 3274 Picture *av_uninit(pic); |
3275 | 3275 |
3276 if((s->avctx->debug&FF_DEBUG_MMCO) && mmco_count==0) | 3276 if((s->avctx->debug&FF_DEBUG_MMCO) && mmco_count==0) |
3277 av_log(h->s.avctx, AV_LOG_DEBUG, "no mmco here\n"); | 3277 av_log(h->s.avctx, AV_LOG_DEBUG, "no mmco here\n"); |
3278 | 3278 |
3279 for(i=0; i<mmco_count; i++){ | 3279 for(i=0; i<mmco_count; i++){ |
3280 int structure, av_uninit(frame_num); | 3280 int av_uninit(structure), av_uninit(frame_num); |
3281 if(s->avctx->debug&FF_DEBUG_MMCO) | 3281 if(s->avctx->debug&FF_DEBUG_MMCO) |
3282 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); | 3282 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); |
3283 | 3283 |
3284 if( mmco[i].opcode == MMCO_SHORT2UNUSED | 3284 if( mmco[i].opcode == MMCO_SHORT2UNUSED |
3285 || mmco[i].opcode == MMCO_SHORT2LONG){ | 3285 || mmco[i].opcode == MMCO_SHORT2LONG){ |