From 06f26598919487edc4d2715228a2fd8d3764e059 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 2 Aug 2015 20:57:39 +0200 Subject: [PATCH] avcodec/v210enc: Use ff_alloc_packet2() Signed-off-by: Michael Niedermayer --- libavcodec/v210enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c index 65684bbb84c..2c8b9cb741f 100644 --- a/libavcodec/v210enc.c +++ b/libavcodec/v210enc.c @@ -116,7 +116,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, int h, w, ret; uint8_t *dst; - ret = ff_alloc_packet(pkt, avctx->height * stride); + ret = ff_alloc_packet2(avctx, pkt, avctx->height * stride, avctx->height * stride); if (ret < 0) { av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); return ret; -- 2.39.2