mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avcodec/v210enc: Use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -116,7 +116,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
int h, w, ret;
|
||||
uint8_t *dst;
|
||||
|
||||
ret = ff_alloc_packet(pkt, avctx->height * stride);
|
||||
ret = ff_alloc_packet2(avctx, pkt, avctx->height * stride, avctx->height * stride);
|
||||
if (ret < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user