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:22 +0100 |
commit | e252fb822a206195ab6dfc5c87bd4c292cbe311b (patch) | |
tree | d36d361dc9e8fdedcc2a6de96691f2f53043f2e7 /libavcodec/v210enc.c | |
parent | 219d8245a0ff2cad480ba5399b349825f7b2cee2 (diff) | |
download | ffmpeg-e252fb822a206195ab6dfc5c87bd4c292cbe311b.tar.gz |
v210enc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/v210enc.c')
-rw-r--r-- | libavcodec/v210enc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c index 93fa2d8a73..fd544bfd6d 100644 --- a/libavcodec/v210enc.c +++ b/libavcodec/v210enc.c @@ -57,8 +57,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const uint16_t *v = (const uint16_t*)pic->data[2]; PutByteContext p; - if ((ret = ff_alloc_packet(pkt, avctx->height * stride)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); + if ((ret = ff_alloc_packet2(avctx, pkt, avctx->height * stride)) < 0) { return ret; } |