diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2015-08-02 18:11:03 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2015-08-02 19:05:26 +0200 |
commit | a0044beccac88d86840aa7f03f885b7fea89b20a (patch) | |
tree | bb02a322ff17ac7fffc3965b98bae5213bbd72b3 | |
parent | 3fe01eca21d5ce7cdd7e6af0ceec40bec05cfba2 (diff) | |
download | ffmpeg-a0044beccac88d86840aa7f03f885b7fea89b20a.tar.gz |
libshine: Fix faulty ff_alloc_packet2 usage
-rw-r--r-- | libavcodec/libshine.c | 2 |
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; |