diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 15:00:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:20 +0100 |
commit | b611ffc5d0689f8108dc7f14d5b5993fd296ed4d (patch) | |
tree | 7bc4ed4475378599c9f5dc399ef01e1aec6b506e /libavcodec/libtheoraenc.c | |
parent | f3b10d38d7030ac543803db0f15b041109c8f463 (diff) | |
download | ffmpeg-b611ffc5d0689f8108dc7f14d5b5993fd296ed4d.tar.gz |
libtheoraenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libtheoraenc.c')
-rw-r--r-- | libavcodec/libtheoraenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c index 30a4b285ff..732c24ab5e 100644 --- a/libavcodec/libtheoraenc.c +++ b/libavcodec/libtheoraenc.c @@ -328,8 +328,7 @@ static int encode_frame(AVCodecContext* avc_context, AVPacket *pkt, } /* Copy ogg_packet content out to buffer */ - if ((ret = ff_alloc_packet(pkt, o_packet.bytes)) < 0) { - av_log(avc_context, AV_LOG_ERROR, "Error getting output packet of size %ld.\n", o_packet.bytes); + if ((ret = ff_alloc_packet2(avc_context, pkt, o_packet.bytes)) < 0) { return ret; } memcpy(pkt->data, o_packet.packet, o_packet.bytes); |