summaryrefslogtreecommitdiff
path: root/libavcodec/libtheoraenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-22 15:00:47 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-22 19:03:20 +0100
commitb611ffc5d0689f8108dc7f14d5b5993fd296ed4d (patch)
tree7bc4ed4475378599c9f5dc399ef01e1aec6b506e /libavcodec/libtheoraenc.c
parentf3b10d38d7030ac543803db0f15b041109c8f463 (diff)
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.c3
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);