diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-22 01:51:38 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-23 17:37:22 +0200 |
commit | 6e26015a6b34f954065d4be8a29ad7941334c490 (patch) | |
tree | 91af25fbb5470947eec5ecf47e00150ae627d55d | |
parent | 8a3f8afa4e46011e9c5849f8e0d57ec9b53deef7 (diff) | |
download | ffmpeg-6e26015a6b34f954065d4be8a29ad7941334c490.tar.gz |
avformat/astenc: Simplify writing padding
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/astenc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/astenc.c b/libavformat/astenc.c index cf75b48b21..a5792e0b07 100644 --- a/libavformat/astenc.c +++ b/libavformat/astenc.c @@ -118,9 +118,7 @@ static int ast_write_packet(AVFormatContext *s, AVPacket *pkt) avio_wb32(pb, size); /* Block size */ /* padding */ - avio_wb64(pb, 0); - avio_wb64(pb, 0); - avio_wb64(pb, 0); + ffio_fill(pb, 0, 24); avio_write(pb, pkt->data, pkt->size); |