diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-20 11:04:13 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-20 19:05:47 +0100 |
commit | ae99313aa585fbf74339a2630a37402819f197c6 (patch) | |
tree | 9702b223a8e6ae2b2ed45abf0e65ba3f514f785c /libavformat/asfenc.c | |
parent | 471fe57e1af2bb37055c93688671c9c79ef9b5cd (diff) | |
download | ffmpeg-ae99313aa585fbf74339a2630a37402819f197c6.tar.gz |
avio: move init_put_byte() to a new private header and rename it
init_put_byte should never be used outside of lavf, since
sizeof(AVIOContext) isn't part of public ABI.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit e731b8d8729e75bfb69f5540e6446d6118dac549)
Diffstat (limited to 'libavformat/asfenc.c')
-rw-r--r-- | libavformat/asfenc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index 4751665a56..a529c1bbdf 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -22,6 +22,7 @@ #include "metadata.h" #include "riff.h" #include "asf.h" +#include "avio_internal.h" #undef NDEBUG #include <assert.h> @@ -578,7 +579,7 @@ static int asf_write_header(AVFormatContext *s) asf->packet_nb_payloads = 0; asf->packet_timestamp_start = -1; asf->packet_timestamp_end = -1; - init_put_byte(&asf->pb, asf->packet_buf, s->packet_size, 1, + ffio_init_context(&asf->pb, asf->packet_buf, s->packet_size, 1, NULL, NULL, NULL, NULL); return 0; @@ -676,7 +677,7 @@ static void flush_packet(AVFormatContext *s) asf->packet_nb_payloads = 0; asf->packet_timestamp_start = -1; asf->packet_timestamp_end = -1; - init_put_byte(&asf->pb, asf->packet_buf, s->packet_size, 1, + ffio_init_context(&asf->pb, asf->packet_buf, s->packet_size, 1, NULL, NULL, NULL, NULL); } |