summaryrefslogtreecommitdiff
path: root/libavcodec/v210enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-02 20:57:39 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-02 20:57:39 +0200
commit06f26598919487edc4d2715228a2fd8d3764e059 (patch)
tree601dc2d673192cbe3d64b3f85fe38b9f08052e56 /libavcodec/v210enc.c
parent107026ea8188302233a5112840e70a7cdec356cd (diff)
downloadffmpeg-06f26598919487edc4d2715228a2fd8d3764e059.tar.gz
avcodec/v210enc: Use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/v210enc.c')
-rw-r--r--libavcodec/v210enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c
index 65684bbb84..2c8b9cb741 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;