From 77eb5504d3b3e1047900382350e0bc5e0bfb16b5 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 21 Feb 2011 19:28:17 +0100 Subject: avio: avio: avio_ prefixes for put_* functions In the name of consistency: put_byte -> avio_w8 put_ -> avio_w put_buffer -> avio_write put_nbyte will be made private put_tag will be merged with avio_put_str Signed-off-by: Ronald S. Bultje --- libavformat/assenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavformat/assenc.c') diff --git a/libavformat/assenc.c b/libavformat/assenc.c index fdd5306028..9abe302744 100644 --- a/libavformat/assenc.c +++ b/libavformat/assenc.c @@ -42,7 +42,7 @@ static int write_header(AVFormatContext *s) if(!end) end= avctx->extradata + avctx->extradata_size; else end++; - put_buffer(s->pb, p, end-p); + avio_write(s->pb, p, end-p); ass->extra_index += end-p; if(last && !memcmp(last, "[Events]", 8)) @@ -57,7 +57,7 @@ static int write_header(AVFormatContext *s) static int write_packet(AVFormatContext *s, AVPacket *pkt) { - put_buffer(s->pb, pkt->data, pkt->size); + avio_write(s->pb, pkt->data, pkt->size); put_flush_packet(s->pb); @@ -69,7 +69,7 @@ static int write_trailer(AVFormatContext *s) ASSContext *ass = s->priv_data; AVCodecContext *avctx= s->streams[0]->codec; - put_buffer(s->pb, avctx->extradata + ass->extra_index, + avio_write(s->pb, avctx->extradata + ass->extra_index, avctx->extradata_size - ass->extra_index); put_flush_packet(s->pb); -- cgit v1.2.3