mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
jpeglsenc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
35dfeb871c
commit
f8a67cb81f
@ -250,9 +250,8 @@ static int encode_picture_ls(AVCodecContext *avctx, AVPacket *pkt,
|
||||
else
|
||||
comps = 3;
|
||||
|
||||
if ((ret = ff_alloc_packet(pkt, avctx->width*avctx->height*comps*4 +
|
||||
if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width*avctx->height*comps*4 +
|
||||
FF_MIN_BUFFER_SIZE)) < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user