diff options
Diffstat (limited to 'libavcodec/opusenc.c')
-rw-r--r-- | libavcodec/opusenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/opusenc.c b/libavcodec/opusenc.c index ac8a5d651c..7b22b929f7 100644 --- a/libavcodec/opusenc.c +++ b/libavcodec/opusenc.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "encode.h" #include "opusenc.h" #include "opus_pvq.h" #include "opusenc_psy.h" @@ -577,7 +578,7 @@ static int opus_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, /* Worst case toc + the frame lengths if needed */ alloc_size += 2 + s->packet.frames*2; - if ((ret = ff_alloc_packet2(avctx, avpkt, alloc_size, 0)) < 0) + if ((ret = ff_alloc_packet(avctx, avpkt, alloc_size)) < 0) return ret; /* Assemble packet */ |