[FFmpeg-cvslog] r17837 - trunk/libavcodec/h264.c
diego
subversion
Fri Mar 6 00:38:52 CET 2009
Author: diego
Date: Fri Mar 6 00:38:52 2009
New Revision: 17837
Log:
Mark variables "j" and "structure" in execute_ref_pic_marking() as av_uninit
to work around false positive 'may be used uninitialized' warnings.
Modified:
trunk/libavcodec/h264.c
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c Fri Mar 6 00:17:11 2009 (r17836)
+++ trunk/libavcodec/h264.c Fri Mar 6 00:38:52 2009 (r17837)
@@ -3269,7 +3269,7 @@ static void print_long_term(H264Context
*/
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 @@ static int execute_ref_pic_marking(H264C
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);
More information about the ffmpeg-cvslog
mailing list