aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-05-29 10:56:45 +0000
committerPaul B Mahol <onemda@gmail.com>2013-05-29 18:14:43 +0000
commit38fefbc474affdbbac3ad53c2094fe56ddb105a0 (patch)
treec9b08d562733762292c13e4a8533c4c32983eea5 /libavformat
parentac025d6eca3274b9173aee3075a584cb9f3ec8ed (diff)
downloadffmpeg-38fefbc474affdbbac3ad53c2094fe56ddb105a0.tar.gz
wtvenc: use ffio_fill()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/wtvenc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c
index a5692c1772..04e6cc22f8 100644
--- a/libavformat/wtvenc.c
+++ b/libavformat/wtvenc.c
@@ -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)
{