comparison avio.h @ 6395:89cf0940e3f0 libavformat

add FF_API_URL_RESETBUF define to disable the deprecated url_resetbuf() public function
author aurel
date Thu, 19 Aug 2010 21:28:43 +0000
parents 896acb967d32
children
comparison
equal deleted inserted replaced
6394:896acb967d32 6395:89cf0940e3f0
452 */ 452 */
453 int url_fdopen(ByteIOContext **s, URLContext *h); 453 int url_fdopen(ByteIOContext **s, URLContext *h);
454 454
455 /** @warning must be called before any I/O */ 455 /** @warning must be called before any I/O */
456 int url_setbufsize(ByteIOContext *s, int buf_size); 456 int url_setbufsize(ByteIOContext *s, int buf_size);
457 #if LIBAVFORMAT_VERSION_MAJOR < 53 457 #if FF_API_URL_RESETBUF
458 /** Reset the buffer for reading or writing. 458 /** Reset the buffer for reading or writing.
459 * @note Will drop any data currently in the buffer without transmitting it. 459 * @note Will drop any data currently in the buffer without transmitting it.
460 * @param flags URL_RDONLY to set up the buffer for reading, or URL_WRONLY 460 * @param flags URL_RDONLY to set up the buffer for reading, or URL_WRONLY
461 * to set up the buffer for writing. */ 461 * to set up the buffer for writing. */
462 int url_resetbuf(ByteIOContext *s, int flags); 462 int url_resetbuf(ByteIOContext *s, int flags);