Commit 06f26598 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/v210enc: Use ff_alloc_packet2()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 107026ea
...@@ -116,7 +116,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, ...@@ -116,7 +116,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
int h, w, ret; int h, w, ret;
uint8_t *dst; 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) { if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment