summaryrefslogtreecommitdiff
path: root/libavformat/soxenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-12-28 21:47:47 +0000
committerPaul B Mahol <onemda@gmail.com>2012-12-28 21:48:07 +0000
commit09401694db35aa986b3fec16bdae429974e1ee36 (patch)
treeee8a3643d382bcf02e074098984913af31a5b7f6 /libavformat/soxenc.c
parenta4912aa61e101945442d4d842876a0986efbaf73 (diff)
soxenc: use ffio_fill
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/soxenc.c')
-rw-r--r--libavformat/soxenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c
index 9a7a4f41cf..d4d3e3754f 100644
--- a/libavformat/soxenc.c
+++ b/libavformat/soxenc.c
@@ -77,8 +77,7 @@ static int sox_write_header(AVFormatContext *s)
if (comment_len)
avio_write(pb, comment->value, comment_len);
- for ( ; comment_size > comment_len; comment_len++)
- avio_w8(pb, 0);
+ ffio_fill(pb, 0, comment_size - comment_len);
avio_flush(pb);