mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/libwebpenc: Use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
06f2659891
commit
7e9cd4e100
@ -57,7 +57,7 @@ static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
goto end;
|
||||
}
|
||||
|
||||
ret = ff_alloc_packet(pkt, mw.size);
|
||||
ret = ff_alloc_packet2(avctx, pkt, mw.size, mw.size);
|
||||
if (ret < 0)
|
||||
goto end;
|
||||
memcpy(pkt->data, mw.mem, mw.size);
|
||||
|
Loading…
Reference in New Issue
Block a user