Commit b611ffc5 authored by Michael Niedermayer's avatar Michael Niedermayer

libtheoraenc: switch to ff_alloc_packet2().

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f3b10d38
...@@ -328,8 +328,7 @@ static int encode_frame(AVCodecContext* avc_context, AVPacket *pkt, ...@@ -328,8 +328,7 @@ static int encode_frame(AVCodecContext* avc_context, AVPacket *pkt,
} }
/* Copy ogg_packet content out to buffer */ /* Copy ogg_packet content out to buffer */
if ((ret = ff_alloc_packet(pkt, o_packet.bytes)) < 0) { if ((ret = ff_alloc_packet2(avc_context, pkt, o_packet.bytes)) < 0) {
av_log(avc_context, AV_LOG_ERROR, "Error getting output packet of size %ld.\n", o_packet.bytes);
return ret; return ret;
} }
memcpy(pkt->data, o_packet.packet, o_packet.bytes); memcpy(pkt->data, o_packet.packet, o_packet.bytes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment