From b98e397252b1950240e04e47e92d17fd8275073a Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 22 Sep 2021 22:38:57 +0200 Subject: avformat/asfenc: Simplify writing error correction data Signed-off-by: Andreas Rheinhardt --- libavformat/asfenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavformat') diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index 07588772c6..a0510df7dc 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -838,8 +838,7 @@ static int put_payload_parsing_info(AVFormatContext *s, av_assert0(padsize >= 0); avio_w8(pb, ASF_PACKET_ERROR_CORRECTION_FLAGS); - for (int i = 0; i < ASF_PACKET_ERROR_CORRECTION_DATA_SIZE; i++) - avio_w8(pb, 0x0); + ffio_fill(pb, 0x0, ASF_PACKET_ERROR_CORRECTION_DATA_SIZE); if (asf->multi_payloads_present) iLengthTypeFlags |= ASF_PPI_FLAG_MULTIPLE_PAYLOADS_PRESENT; -- cgit v1.2.3