[FFmpeg-cvslog] avformat/asfenc: Simplify writing error correction data
Andreas Rheinhardt
git at videolan.org
Mon Sep 27 08:19:21 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Sep 22 22:38:57 2021 +0200| [b98e397252b1950240e04e47e92d17fd8275073a] | committer: Andreas Rheinhardt
avformat/asfenc: Simplify writing error correction data
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b98e397252b1950240e04e47e92d17fd8275073a
---
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;
More information about the ffmpeg-cvslog
mailing list