[FFmpeg-cvslog] avformat/astenc: Simplify writing padding
Andreas Rheinhardt
git at videolan.org
Thu Sep 23 18:47:47 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Sep 22 01:51:38 2021 +0200| [6e26015a6b34f954065d4be8a29ad7941334c490] | committer: Andreas Rheinhardt
avformat/astenc: Simplify writing padding
Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6e26015a6b34f954065d4be8a29ad7941334c490
---
libavformat/astenc.c | 4 +---
1 file changed, 1 insertion(+), 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);
More information about the ffmpeg-cvslog
mailing list