Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-02 21:58:31 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-02 21:58:31 +0300
commit7e9cd4e100086c187c7ad5d8953be3ef282ab497 (patch)
treedf001e79202952b737a6b3b61fa1661a5c8957d0 /libavcodec/libwebpenc.c
parent06f26598919487edc4d2715228a2fd8d3764e059 (diff)
avcodec/libwebpenc: Use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/libwebpenc.c')
-rw-r--r--libavcodec/libwebpenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libwebpenc.c b/libavcodec/libwebpenc.c
index db96e1637b..0bcf628e58 100644
--- a/libavcodec/libwebpenc.c
+++ b/libavcodec/libwebpenc.c
@@ -57,7 +57,7 @@ static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
goto end;
}
- ret = ff_alloc_packet(pkt, mw.size);
+ ret = ff_alloc_packet2(avctx, pkt, mw.size, mw.size);
if (ret < 0)
goto end;
memcpy(pkt->data, mw.mem, mw.size);