mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/mlpenc: use av_shrink_packet()
This commit is contained in:
parent
cfc491bf44
commit
ac29cec312
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue