aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-05-29 10:40:13 +0000
committerPaul B Mahol <onemda@gmail.com>2013-05-29 10:40:13 +0000
commit96db307b3d4ebbf148a666107cc4f707c78486c6 (patch)
tree23e23d3372b5d23d2b7c1d6fd4a9c088d564086a /libavformat
parent4ea5aea869032dcf046eb26682f0f6485e504c18 (diff)
downloadffmpeg-96db307b3d4ebbf148a666107cc4f707c78486c6.tar.gz
lavf/flacenc: use ffio_fill()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/flacenc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c
index 8c1a1bb7bd..87e93625f2 100644
--- a/libavformat/flacenc.c
+++ b/libavformat/flacenc.c
@@ -21,6 +21,7 @@
#include "libavcodec/flac.h"
#include "avformat.h"
+#include "avio_internal.h"
#include "flacenc.h"
#include "vorbiscomment.h"
#include "libavcodec/bytestream.h"
@@ -31,10 +32,7 @@ static int flac_write_block_padding(AVIOContext *pb, unsigned int n_padding_byte
{
avio_w8(pb, last_block ? 0x81 : 0x01);
avio_wb24(pb, n_padding_bytes);
- while (n_padding_bytes > 0) {
- avio_w8(pb, 0);
- n_padding_bytes--;
- }
+ ffio_fill(pb, 0, n_padding_bytes);
return 0;
}