wtvenc: use ffio_fill()
authorPaul B Mahol <onemda@gmail.com>
Wed, 29 May 2013 10:56:45 +0000 (10:56 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 29 May 2013 18:14:43 +0000 (18:14 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/wtvenc.c

index a5692c17728c77912065a6bd92adf864f6e90ce7..04e6cc22f8d16863c35f99d260b75cb392daf2df 100644 (file)
@@ -28,6 +28,7 @@
 #include "libavutil/intreadwrite.h"
 #include "libavutil/avassert.h"
 #include "avformat.h"
+#include "avio_internal.h"
 #include "internal.h"
 #include "wtv.h"
 #include "asf.h"
@@ -127,12 +128,7 @@ typedef struct {
     WTVHeaderWriteFunc *write_header;
 } WTVRootEntryTable;
 
-static int write_pad(AVIOContext *pb, int size)
-{
-    for (; size > 0; size--)
-        avio_w8(pb, 0);
-    return 0;
-}
+#define write_pad(pb, size) ffio_fill(pb, 0, size)
 
 static const ff_asf_guid *get_codec_guid(enum AVCodecID id, const AVCodecGuid *av_guid)
 {