mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
mpegvideo_enc: : switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
620559e37b
commit
e22113cf1d
@ -1435,8 +1435,7 @@ int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
|
||||
|
||||
/* output? */
|
||||
if (s->new_picture.f.data[0]) {
|
||||
if (!pkt->data &&
|
||||
(ret = ff_alloc_packet(pkt, s->mb_width*s->mb_height*(MAX_MB_BYTES+100)+10000)) < 0)
|
||||
if ((ret = ff_alloc_packet2(avctx, pkt, s->mb_width*s->mb_height*(MAX_MB_BYTES+100)+10000)) < 0)
|
||||
return ret;
|
||||
if (s->mb_info) {
|
||||
s->mb_info_ptr = av_packet_new_side_data(pkt,
|
||||
|
Loading…
Reference in New Issue
Block a user