mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
wtvenc: use ffio_fill()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ac025d6eca
commit
38fefbc474
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user