aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 04:24:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:19 +0100
commit5dadfaa9f5c099cd95a1cdb82ffc4d4f19dd7769 (patch)
tree1d5b7f658a708450d9f0dd666416f417d9aca197
parentc5ea6a5c75ab10fe43b23930ef910b1d66ad09f0 (diff)
downloadffmpeg-5dadfaa9f5c099cd95a1cdb82ffc4d4f19dd7769.tar.gz
gifenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/gif.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 2ae63865d2..b8d7f1ac41 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -164,8 +164,7 @@ static int gif_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
uint8_t *outbuf_ptr, *end;
int ret;
- if ((ret = ff_alloc_packet(pkt, avctx->width*avctx->height*7/5 + FF_MIN_BUFFER_SIZE)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
+ if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width*avctx->height*7/5 + FF_MIN_BUFFER_SIZE)) < 0) {
return ret;
}
outbuf_ptr = pkt->data;