[FFmpeg-cvslog] wtvenc: use ffio_fill()

Paul B Mahol git at videolan.org
Wed May 29 20:15:08 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed May 29 10:56:45 2013 +0000| [38fefbc474affdbbac3ad53c2094fe56ddb105a0] | committer: Paul B Mahol

wtvenc: use ffio_fill()

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=38fefbc474affdbbac3ad53c2094fe56ddb105a0
---

 libavformat/wtvenc.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c
index a5692c1..04e6cc2 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)
 {



More information about the ffmpeg-cvslog mailing list