mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/vc2enc: Actually zero padding
This encoder sets the min_size in ff_alloc_packet2(), so it can not rely on av_packet_make_refcounted() to zero the padding. Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
cc7943e803
commit
aa2e0b868d
@ -993,7 +993,7 @@ static av_cold int vc2_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
||||
}
|
||||
|
||||
flush_put_bits(&s->pb);
|
||||
avpkt->size = put_bits_count(&s->pb) >> 3;
|
||||
av_shrink_packet(avpkt, put_bytes_output(&s->pb));
|
||||
|
||||
*got_packet = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user