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 | 9407cf137f70b07473de974078464ec8733c3e1f (patch) | |
tree | 4505e5d526764cc3ed43f97733d4c6e9376daaad /libavcodec | |
parent | d9375b0ec66a71813f09b57bda10a7846c35dfe6 (diff) | |
download | ffmpeg-9407cf137f70b07473de974078464ec8733c3e1f.tar.gz |
libvorbis: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libvorbis.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c index 2957c782ce..cbbe2688f1 100644 --- a/libavcodec/libvorbis.c +++ b/libavcodec/libvorbis.c @@ -353,8 +353,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, av_fifo_generic_read(s->pkt_fifo, &op, sizeof(ogg_packet), NULL); - if ((ret = ff_alloc_packet(avpkt, op.bytes))) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n"); + if ((ret = ff_alloc_packet2(avctx, avpkt, op.bytes))) { return ret; } av_fifo_generic_read(s->pkt_fifo, avpkt->data, op.bytes, NULL); |