]> git.sesse.net Git - ffmpeg/commitdiff
h264/ff_generate_sliding_window_mmcos: fix use of uninitialized variable
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 20 Jan 2013 19:02:35 +0000 (20:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 20 Jan 2013 19:02:57 +0000 (20:02 +0100)
Fixes CID968587
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264_refs.c

index 68004f85b039c8b5c201cf942655ee84aea23107..8df4c3a7f017c7761cbec4ff55b4ab972b59a6bf 100644 (file)
@@ -522,8 +522,8 @@ int ff_generate_sliding_window_mmcos(H264Context *h, int first_slice)
                (mmco_index != h->mmco_index ||
                 (i = check_opcodes(h->mmco, mmco_temp, mmco_index)))) {
         av_log(h->s.avctx, AV_LOG_ERROR,
-               "Inconsistent MMCO state between slices [%d, %d, %d]\n",
-               mmco_index, h->mmco_index, i);
+               "Inconsistent MMCO state between slices [%d, %d]\n",
+               mmco_index, h->mmco_index);
         return AVERROR_INVALIDDATA;
     }
     return 0;