libschroedingerenc: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -381,8 +381,7 @@ static int libschroedinger_encode_frame(AVCodecContext *avccontext, AVPacket *pk
|
|||||||
pkt_size = p_frame_output->size;
|
pkt_size = p_frame_output->size;
|
||||||
if (last_frame_in_sequence && p_schro_params->enc_buf_size > 0)
|
if (last_frame_in_sequence && p_schro_params->enc_buf_size > 0)
|
||||||
pkt_size += p_schro_params->enc_buf_size;
|
pkt_size += p_schro_params->enc_buf_size;
|
||||||
if ((ret = ff_alloc_packet(pkt, pkt_size)) < 0) {
|
if ((ret = ff_alloc_packet2(avccontext, pkt, pkt_size)) < 0) {
|
||||||
av_log(avccontext, AV_LOG_ERROR, "Error getting output packet of size %d.\n", pkt_size);
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user