You've already forked FFmpeg
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:
@@ -2300,7 +2300,8 @@ input_and_return:
|
|||||||
ff_af_queue_remove(&ctx->afq, avctx->frame_size, &avpkt->pts,
|
ff_af_queue_remove(&ctx->afq, avctx->frame_size, &avpkt->pts,
|
||||||
&avpkt->duration);
|
&avpkt->duration);
|
||||||
|
|
||||||
avpkt->size = bytes_written;
|
av_shrink_packet(avpkt, bytes_written);
|
||||||
|
|
||||||
*got_packet = 1;
|
*got_packet = 1;
|
||||||
} else {
|
} else {
|
||||||
*got_packet = 0;
|
*got_packet = 0;
|
||||||
|
Reference in New Issue
Block a user