[SCM] libav/experimental: h264: fix clang warning about uninitialized variable

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:01:45 UTC 2014


The following commit has been merged in the experimental branch:
commit f4bd9fe326ad1315a74206939ae56df93b940a09
Author: Vittorio Giovara <vittorio.giovara at gmail.com>
Date:   Fri Feb 28 13:16:37 2014 +0100

    h264: fix clang warning about uninitialized variable

diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index 78bb7c4..ccdb49b 100644
--- a/libavcodec/h264_refs.c
+++ b/libavcodec/h264_refs.c
@@ -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);
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list