soxenc: use ffio_fill
authorPaul B Mahol <onemda@gmail.com>
Fri, 28 Dec 2012 21:47:47 +0000 (21:47 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 28 Dec 2012 21:48:07 +0000 (21:48 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/soxenc.c

index 9a7a4f4..d4d3e37 100644 (file)
@@ -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);