Commit 38fefbc4 authored by Paul B Mahol's avatar Paul B Mahol

wtvenc: use ffio_fill()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent ac025d6e
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/avassert.h" #include "libavutil/avassert.h"
#include "avformat.h" #include "avformat.h"
#include "avio_internal.h"
#include "internal.h" #include "internal.h"
#include "wtv.h" #include "wtv.h"
#include "asf.h" #include "asf.h"
...@@ -127,12 +128,7 @@ typedef struct { ...@@ -127,12 +128,7 @@ typedef struct {
WTVHeaderWriteFunc *write_header; WTVHeaderWriteFunc *write_header;
} WTVRootEntryTable; } WTVRootEntryTable;
static int write_pad(AVIOContext *pb, int size) #define write_pad(pb, size) ffio_fill(pb, 0, size)
{
for (; size > 0; size--)
avio_w8(pb, 0);
return 0;
}
static const ff_asf_guid *get_codec_guid(enum AVCodecID id, const AVCodecGuid *av_guid) static const ff_asf_guid *get_codec_guid(enum AVCodecID id, const AVCodecGuid *av_guid)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment