1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

libshine: Fix faulty ff_alloc_packet2 usage

This commit is contained in:
Rico Tzschichholz
2015-08-02 18:11:03 +02:00
committed by Clément Bœsch
parent 3fe01eca21
commit a0044becca

View File

@@ -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;