h264: fix clang warning about uninitialized variable
authorVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 28 Feb 2014 12:16:37 +0000 (13:16 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 28 Feb 2014 17:15:15 +0000 (18:15 +0100)
libavcodec/h264_refs.c

index 78bb7c4..ccdb49b 100644 (file)
@@ -535,7 +535,7 @@ static int check_opcodes(MMCO *mmco1, MMCO *mmco2, int n_mmcos)
 int ff_generate_sliding_window_mmcos(H264Context *h, int first_slice)
 {
     MMCO mmco_temp[MAX_MMCO_COUNT], *mmco = first_slice ? h->mmco : mmco_temp;
-    int mmco_index = 0, i;
+    int mmco_index = 0, i = 0;
 
     assert(h->long_ref_count + h->short_ref_count <= h->sps.ref_frame_count);