diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 15:00:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:20 +0100 |
commit | d29719121dd58fee740f455259e9e46878165e59 (patch) | |
tree | c22f07f0000f3148d980a8bee4dee21e605645fa /libavcodec/libxavs.c | |
parent | 660e8cb9e38fee799c732ab7b274289b09f73f26 (diff) | |
download | ffmpeg-d29719121dd58fee740f455259e9e46878165e59.tar.gz |
libxavs: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libxavs.c')
-rw-r--r-- | libavcodec/libxavs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c index 0fc69300b5..f7bdf825ad 100644 --- a/libavcodec/libxavs.c +++ b/libavcodec/libxavs.c @@ -87,8 +87,7 @@ static int encode_nals(AVCodecContext *ctx, AVPacket *pkt, for (i = 0; i < nnal; i++) size += nals[i].i_payload; - if ((ret = ff_alloc_packet(pkt, size)) < 0) { - av_log(ctx, AV_LOG_ERROR, "Error getting output packet of size %d.\n", size); + if ((ret = ff_alloc_packet2(ctx, pkt, size)) < 0) { return ret; } p = pkt->data; @@ -144,7 +143,7 @@ static int XAVS_frame(AVCodecContext *ctx, AVPacket *pkt, if (!ret) { if (!frame && !(x4->end_of_stream)) { - if ((ret = ff_alloc_packet(pkt, 4)) < 0) + if ((ret = ff_alloc_packet2(ctx, pkt, 4)) < 0) return ret; pkt->data[0] = 0x0; |