summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2015-08-02 18:11:03 +0200
committerClément Bœsch <u@pkh.me>2015-08-02 19:05:26 +0200
commita0044beccac88d86840aa7f03f885b7fea89b20a (patch)
treebb02a322ff17ac7fffc3965b98bae5213bbd72b3 /libavcodec
parent3fe01eca21d5ce7cdd7e6af0ceec40bec05cfba2 (diff)
libshine: Fix faulty ff_alloc_packet2 usage
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libshine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libshine.c b/libavcodec/libshine.c
index b9f69a117a..f4cf5981bc 100644
--- a/libavcodec/libshine.c
+++ b/libavcodec/libshine.c
@@ -102,7 +102,7 @@ static int libshine_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
len = hdr.frame_size;
if (len <= s->buffer_index) {
- if ((ret = ff_alloc_packet2(avctx, avpkt, len)))
+ if ((ret = ff_alloc_packet2(avctx, avpkt, len, 0)))
return ret;
memcpy(avpkt->data, s->buffer, len);
s->buffer_index -= len;