summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264addpx_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/h264addpx_template.c')
-rw-r--r--libavcodec/h264addpx_template.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h264addpx_template.c b/libavcodec/h264addpx_template.c
index d1babc5..cdbfc67 100644
--- a/libavcodec/h264addpx_template.c
+++ b/libavcodec/h264addpx_template.c
@@ -43,6 +43,8 @@ static void FUNCC(ff_h264_add_pixels4)(uint8_t *_dst, int16_t *_src, int stride)
dst += stride;
src += 4;
}
+
+ memset(_src, 0, sizeof(dctcoef) * 16);
}
static void FUNCC(ff_h264_add_pixels8)(uint8_t *_dst, int16_t *_src, int stride)
@@ -65,4 +67,6 @@ static void FUNCC(ff_h264_add_pixels8)(uint8_t *_dst, int16_t *_src, int stride)
dst += stride;
src += 8;
}
+
+ memset(_src, 0, sizeof(dctcoef) * 64);
}
OpenPOWER on IntegriCloud