Commit 005d0069 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libopenh264enc: Avoid usage of deprecated ff_alloc_packet()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 2bdd026b
......@@ -202,7 +202,7 @@ static int svc_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
}
av_log(avctx, AV_LOG_DEBUG, "%d slices\n", fbi.sLayerInfo[fbi.iLayerNum - 1].iNalCount);
if ((ret = ff_alloc_packet(avpkt, size))) {
if ((ret = ff_alloc_packet2(avctx, avpkt, size, size))) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
return ret;
}
......
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