summaryrefslogtreecommitdiff
path: root/libavcodec/v410enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 15:00:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:22 +0100
commit079d7246fbea9d81d6e4f338e7add732d509348f (patch)
treebc739d7bbe44179af2228cb4600c5f225fca0b92 /libavcodec/v410enc.c
parentefc245b9d6f4d76d206b7105a9b6a663d7deaef4 (diff)
v410enc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/v410enc.c')
-rw-r--r--libavcodec/v410enc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c
index f72dfd3c3a..e278ac4e27 100644
--- a/libavcodec/v410enc.c
+++ b/libavcodec/v410enc.c
@@ -49,8 +49,7 @@ static int v410_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
uint32_t val;
int i, j, ret;
- if ((ret = ff_alloc_packet(pkt, avctx->width * avctx->height * 4)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
+ if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 4)) < 0) {
return ret;
}
dst = pkt->data;