[FFmpeg-devel] [PATCH 18/27] avformat/asfenc: Simplify writing error correction data
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Sep 23 18:28:53 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
Equivalent to avio_w16(pb, 0x0).
libavformat/asfenc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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;
--
2.30.2
More information about the ffmpeg-devel
mailing list