diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-21 19:28:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-22 02:44:38 +0100 |
commit | e9eb8d0bcecd656292856698f603a841a82cc9c6 (patch) | |
tree | 4b601393c2f41791e8db8ea2fe4ad2a1dbae3937 /libavformat/rsoenc.c | |
parent | e48fe14a54d8360336dbb22f3f787815b57dda47 (diff) | |
download | ffmpeg-e9eb8d0bcecd656292856698f603a841a82cc9c6.tar.gz |
avio: avio: avio_ prefixes for put_* functions
In the name of consistency:
put_byte -> avio_w8
put_<type> -> avio_w<type>
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 <rsbultje@gmail.com>
(cherry picked from commit 77eb5504d3b3e1047900382350e0bc5e0bfb16b5)
Diffstat (limited to 'libavformat/rsoenc.c')
-rw-r--r-- | libavformat/rsoenc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/rsoenc.c b/libavformat/rsoenc.c index 0093265772..9c5ee9bd62 100644 --- a/libavformat/rsoenc.c +++ b/libavformat/rsoenc.c @@ -55,10 +55,10 @@ static int rso_write_header(AVFormatContext *s) } /* format header */ - put_be16(pb, enc->codec_tag); /* codec ID */ - put_be16(pb, 0); /* data size, will be written at EOF */ - put_be16(pb, enc->sample_rate); - put_be16(pb, 0x0000); /* play mode ? (0x0000 = don't loop) */ + avio_wb16(pb, enc->codec_tag); /* codec ID */ + avio_wb16(pb, 0); /* data size, will be written at EOF */ + avio_wb16(pb, enc->sample_rate); + avio_wb16(pb, 0x0000); /* play mode ? (0x0000 = don't loop) */ put_flush_packet(pb); @@ -67,7 +67,7 @@ static int rso_write_header(AVFormatContext *s) static int rso_write_packet(AVFormatContext *s, AVPacket *pkt) { - put_buffer(s->pb, pkt->data, pkt->size); + avio_write(s->pb, pkt->data, pkt->size); return 0; } @@ -92,7 +92,7 @@ static int rso_write_trailer(AVFormatContext *s) /* update file size */ url_fseek(pb, 2, SEEK_SET); - put_be16(pb, coded_file_size); + avio_wb16(pb, coded_file_size); url_fseek(pb, file_size, SEEK_SET); put_flush_packet(pb); |