[FFmpeg-cvslog] soxenc: use ffio_fill

Paul B Mahol git at videolan.org
Fri Dec 28 22:50:31 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Dec 28 21:47:47 2012 +0000| [09401694db35aa986b3fec16bdae429974e1ee36] | committer: Paul B Mahol

soxenc: use ffio_fill

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09401694db35aa986b3fec16bdae429974e1ee36
---

 libavformat/soxenc.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c
index 9a7a4f4..d4d3e37 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);
 



More information about the ffmpeg-cvslog mailing list