diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 15:00:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:21 +0100 |
commit | d388dd9ee3e0aa11f9c700103fdd2f74bb78463c (patch) | |
tree | 622443d1b2aa165c9cededd61ad8b7f9cb7b0b26 /libavcodec/proresenc_anatoliy.c | |
parent | 6a74c48cf934816f3bfb9665162012bf77c5acb7 (diff) | |
download | ffmpeg-d388dd9ee3e0aa11f9c700103fdd2f74bb78463c.tar.gz |
proresenc_anatoliy: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/proresenc_anatoliy.c')
-rw-r--r-- | libavcodec/proresenc_anatoliy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index f0cc4f5a67..bd96b52d2a 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -26,6 +26,7 @@ */ #include "avcodec.h" +#include "internal.h" #include "put_bits.h" #include "bytestream.h" #include "dsputil.h" @@ -493,9 +494,7 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt, int frame_size = FFALIGN(avctx->width, 16) * FFALIGN(avctx->height, 16)*16 + 500 + FF_MIN_BUFFER_SIZE; //FIXME choose tighter limit - if (!pkt->data && - (ret = av_new_packet(pkt, frame_size + FF_MIN_BUFFER_SIZE)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); + if ((ret = ff_alloc_packet2(avctx, pkt, frame_size + FF_MIN_BUFFER_SIZE)) < 0) { return ret; } |