mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-28 15:39:16 +00:00
avio: make url_fdopen internal.
The unbuffered URLContext API will be made private, so there's no point in this function being public.
This commit is contained in:
parent
403ee835e7
commit
724f6a0fa4
4 changed files with 22 additions and 16 deletions
|
@ -431,6 +431,10 @@ int url_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
|
|||
{
|
||||
return avio_close_dyn_buf(s, pbuffer);
|
||||
}
|
||||
int url_fdopen(AVIOContext **s, URLContext *h)
|
||||
{
|
||||
return ffio_fdopen(s, h);
|
||||
}
|
||||
#endif
|
||||
|
||||
int avio_put_str(AVIOContext *s, const char *str)
|
||||
|
@ -818,7 +822,7 @@ uint64_t ffio_read_varlen(AVIOContext *bc){
|
|||
return val;
|
||||
}
|
||||
|
||||
int url_fdopen(AVIOContext **s, URLContext *h)
|
||||
int ffio_fdopen(AVIOContext **s, URLContext *h)
|
||||
{
|
||||
uint8_t *buffer;
|
||||
int buffer_size, max_packet_size;
|
||||
|
@ -943,7 +947,7 @@ int avio_open(AVIOContext **s, const char *filename, int flags)
|
|||
err = url_open(&h, filename, flags);
|
||||
if (err < 0)
|
||||
return err;
|
||||
err = url_fdopen(s, h);
|
||||
err = ffio_fdopen(s, h);
|
||||
if (err < 0) {
|
||||
url_close(h);
|
||||
return err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue