avcodec/mlpenc: use av_shrink_packet()

pull/365/head
Paul B Mahol 3 years ago
parent cfc491bf44
commit ac29cec312
  1. 3
      libavcodec/mlpenc.c

@ -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…
Cancel
Save