summaryrefslogtreecommitdiff
path: root/libavcodec/h264_refs.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-02-28 13:16:37 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-02-28 18:15:15 +0100
commitf4bd9fe326ad1315a74206939ae56df93b940a09 (patch)
tree5c00264114a3ba1c7f324a231939ec66095b1485 /libavcodec/h264_refs.c
parent17a63ff0cd187b9e50e4a47862750295976853b1 (diff)
h264: fix clang warning about uninitialized variable
Diffstat (limited to 'libavcodec/h264_refs.c')
-rw-r--r--libavcodec/h264_refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index 78bb7c452f..ccdb49bc5b 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);