mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avio: deprecate url_close_buf
It's not used anywhere and its return value looks broken. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
parent
83fddaeb81
commit
35f1023592
@ -631,10 +631,10 @@ URLContext *url_fileno(AVIOContext *s);
|
||||
attribute_deprecated int url_fget_max_packet_size(AVIOContext *s);
|
||||
|
||||
attribute_deprecated int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags);
|
||||
#endif
|
||||
|
||||
/** return the written or read size */
|
||||
int url_close_buf(AVIOContext *s);
|
||||
attribute_deprecated int url_close_buf(AVIOContext *s);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Open a write only memory stream.
|
||||
|
@ -1010,13 +1010,13 @@ int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags)
|
||||
av_freep(s);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
int url_close_buf(AVIOContext *s)
|
||||
{
|
||||
put_flush_packet(s);
|
||||
return s->buf_ptr - s->buffer;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* output in a dynamic buffer */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user