summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-14 13:23:57 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-14 13:23:57 +0100
commite6f1601d6d519eda1a1801fafc0fc806d9a3cd9d (patch)
tree5b2591d5db27c2ff725d6ddab4a99ea58df5eef6 /libavcodec
parent2493558a06402b1bc1a17f139e517bcd39382ba1 (diff)
downloadffmpeg-e6f1601d6d519eda1a1801fafc0fc806d9a3cd9d.tar.gz
avcodec/svq3: Use av_mallocz_array() for emu_edge_buffer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/svq3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 5fa370a4d2..a3354d1769 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -1110,7 +1110,7 @@ static int get_buffer(AVCodecContext *avctx, H264Picture *pic)
goto fail;
if (!h->edge_emu_buffer) {
- h->edge_emu_buffer = av_mallocz(pic->f.linesize[0] * 17);
+ h->edge_emu_buffer = av_mallocz_array(pic->f.linesize[0], 17);
if (!h->edge_emu_buffer)
return AVERROR(ENOMEM);
}