summaryrefslogtreecommitdiff
path: root/libavcodec/v210enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/v210enc.c')
-rw-r--r--libavcodec/v210enc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c
index 93fa2d8a73..fd544bfd6d 100644
--- a/libavcodec/v210enc.c
+++ b/libavcodec/v210enc.c
@@ -57,8 +57,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const uint16_t *v = (const uint16_t*)pic->data[2];
PutByteContext p;
- if ((ret = ff_alloc_packet(pkt, avctx->height * stride)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
+ if ((ret = ff_alloc_packet2(avctx, pkt, avctx->height * stride)) < 0) {
return ret;
}