1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/mlpenc: use av_shrink_packet()

This commit is contained in:
Paul B Mahol
2021-09-05 14:08:08 +02:00
parent cfc491bf44
commit ac29cec312

View File

@@ -2300,7 +2300,8 @@ input_and_return:
ff_af_queue_remove(&ctx->afq, avctx->frame_size, &avpkt->pts,
&avpkt->duration);
avpkt->size = bytes_written;
av_shrink_packet(avpkt, bytes_written);
*got_packet = 1;
} else {
*got_packet = 0;