summaryrefslogtreecommitdiff
path: root/libavformat/asfenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-22 22:38:57 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 07:08:59 +0200
commitb98e397252b1950240e04e47e92d17fd8275073a (patch)
treee30e9319f8ff6f15eaa1ae0d72a24042f3e66b86 /libavformat/asfenc.c
parentdbc76e4e70a43fbe6dd7c7c899b134e4c26f43f5 (diff)
downloadffmpeg-b98e397252b1950240e04e47e92d17fd8275073a.tar.gz
avformat/asfenc: Simplify writing error correction data
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/asfenc.c')
-rw-r--r--libavformat/asfenc.c3
1 files changed, 1 insertions, 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;