summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-03-05 23:38:52 +0000
committerDiego Biurrun <diego@biurrun.de>2009-03-05 23:38:52 +0000
commit1b0f4920b80f7d10d9ede1adf7368869a954e6a6 (patch)
treedb8c9c487e523c41575bf527f4dbc2b167a3ee23 /libavcodec
parentde2c2b5a9806886d93b29f92c7bb4cfa80ddfabd (diff)
Mark variables "j" and "structure" in execute_ref_pic_marking() as av_uninit
to work around false positive 'may be used uninitialized' warnings. Originally committed as revision 17837 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 403d62e0b2..68ba451fa4 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3269,7 +3269,7 @@ static void print_long_term(H264Context *h) {
*/
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(H264Context *h, MMCO *mmco, int mmco_count){
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);