mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
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)
This commit is contained in:

committed by
Michael Niedermayer

parent
471fe57e1a
commit
ae99313aa5
@ -31,6 +31,7 @@
|
||||
#include "avformat.h"
|
||||
#include "mms.h"
|
||||
#include "internal.h"
|
||||
#include "avio_internal.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "libavcodec/bytestream.h"
|
||||
#include "network.h"
|
||||
@ -155,7 +156,7 @@ static void mms_put_utf16(MMSContext *mms, uint8_t *src)
|
||||
AVIOContext bic;
|
||||
int size = mms->write_out_ptr - mms->out_buffer;
|
||||
int len;
|
||||
init_put_byte(&bic, mms->write_out_ptr,
|
||||
ffio_init_context(&bic, mms->write_out_ptr,
|
||||
sizeof(mms->out_buffer) - size, 1, NULL, NULL, NULL, NULL);
|
||||
|
||||
len = avio_put_str16le(&bic, src);
|
||||
|
Reference in New Issue
Block a user