summaryrefslogtreecommitdiff
path: root/libavcodec/v308enc.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
commitf234b02c940eb6aba06390cde9b51749f7d6060d (patch)
treedf43543c61899083e53ef92f6c09e1ff13ce59ac /libavcodec/v308enc.c
parente252fb822a206195ab6dfc5c87bd4c292cbe311b (diff)
downloadffmpeg-f234b02c940eb6aba06390cde9b51749f7d6060d.tar.gz
v308enc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/v308enc.c')
-rw-r--r--libavcodec/v308enc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/v308enc.c b/libavcodec/v308enc.c
index d6598d2811..c728b01f67 100644
--- a/libavcodec/v308enc.c
+++ b/libavcodec/v308enc.c
@@ -48,8 +48,7 @@ static int v308_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
uint8_t *y, *u, *v;
int i, j, ret;
- if ((ret = ff_alloc_packet(pkt, avctx->width * avctx->height * 3)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Out buffer is too small.\n");
+ if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 3)) < 0) {
return ret;
}
dst = pkt->data;