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 | 37e434e492907468063e96b91b74e322fe15d510 (patch) | |
tree | 101159a37af60d58784d80473825ba91217ff364 /libavcodec | |
parent | d388dd9ee3e0aa11f9c700103fdd2f74bb78463c (diff) | |
download | ffmpeg-37e434e492907468063e96b91b74e322fe15d510.tar.gz |
proresenc_kostya: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/proresenc_kostya.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index d46401b754..4bbfe274a5 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -700,8 +700,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, pkt_size = ctx->frame_size + FF_MIN_BUFFER_SIZE; - if ((ret = ff_alloc_packet(pkt, pkt_size)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); + if ((ret = ff_alloc_packet2(avctx, pkt, pkt_size)) < 0) { return ret; } |