You've already forked FFmpeg
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:
committed by
Clément Bœsch
parent
3fe01eca21
commit
a0044becca
@@ -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;
|
||||
|
Reference in New Issue
Block a user