Browse Source

soxenc: use ffio_fill

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.1
Paul B Mahol 13 years ago
parent
commit
09401694db
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/soxenc.c

+ 1
- 2
libavformat/soxenc.c View File

@@ -77,8 +77,7 @@ static int sox_write_header(AVFormatContext *s)
if (comment_len) if (comment_len)
avio_write(pb, comment->value, 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); avio_flush(pb);




Loading…
Cancel
Save