[FFmpeg-devel] [PATCH 1/3] lavf/movenc: use ffio_fill()
Matthieu Bouron
matthieu.bouron at gmail.com
Sun Jun 30 16:15:44 CEST 2013
---
libavformat/movenc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index cff0760..8cf7fdc 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;
--
1.8.3.1
More information about the ffmpeg-devel
mailing list