summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2013-06-30 16:15:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-30 16:28:51 +0200
commit9e6d063dbc47d76cf79f98f531deca8b4afb879f (patch)
treea2d7ce91d7af0014a2e2fa39e823e00997754e09 /libavformat
parent4e99660493110bf546bd6ab14a08755633400cf8 (diff)
lavf/movenc: use ffio_fill()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index c18d8af2b6..c19d58d683 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2640,8 +2640,7 @@ static int mov_write_tfrf_tag(AVIOContext *pb, MOVMuxContext *mov,
int free_size = 16*(mov->ism_lookahead - n);
avio_wb32(pb, free_size);
ffio_wfourcc(pb, "free");
- for (i = 0; i < free_size - 8; i++)
- avio_w8(pb, 0);
+ ffio_fill(pb, 0, free_size - 8);
}
return 0;