diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 04:26:20 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:19 +0100 |
commit | 6c775606d1827feed6fee64ba80da0e68067378b (patch) | |
tree | ced864394b8d9087814d6ec449250dfbf8f6badd | |
parent | 57c52663b613f86294ded5dccfd15f73ddfe3c44 (diff) | |
download | ffmpeg-6c775606d1827feed6fee64ba80da0e68067378b.tar.gz |
roqvideoenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/roqvideoenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c index 38008b0b2c..f439e0c599 100644 --- a/libavcodec/roqvideoenc.c +++ b/libavcodec/roqvideoenc.c @@ -1020,8 +1020,7 @@ static int roq_encode_frame(AVCodecContext *avctx, AVPacket *pkt, /* 138 bits max per 8x8 block + * 256 codebooks*(6 bytes 2x2 + 4 bytes 4x4) + 8 bytes frame header */ size = ((enc->width * enc->height / 64) * 138 + 7) / 8 + 256 * (6 + 4) + 8; - if ((ret = ff_alloc_packet(pkt, size)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet with size %d.\n", size); + if ((ret = ff_alloc_packet2(avctx, pkt, size)) < 0) { return ret; } enc->out_buf = pkt->data; |