Revision 01d91b9b libavformat/avio.h

View differences:

libavformat/avio.h
433 433
#endif
434 434

  
435 435
/**
436
 * Rewinds the ByteIOContext using the specified buffer containing the first buf_size bytes of the file.
437
 * Used after probing to avoid seeking.
438
 * Joins buf and s->buffer, taking any overlap into consideration.
439
 * @note s->buffer must overlap with buf or they can't be joined and the function fails
440
 * @note This function is NOT part of the public API
441
 *
442
 * @param s The read-only ByteIOContext to rewind
443
 * @param buf The probe buffer containing the first buf_size bytes of the file
444
 * @param buf_size The size of buf
445
 * @return 0 in case of success, a negative value corresponding to an
446
 * AVERROR code in case of failure
447
 */
448
int ff_rewind_with_probe_data(ByteIOContext *s, unsigned char *buf, int buf_size);
449

  
450
/**
436 451
 * Creates and initializes a ByteIOContext for accessing the
437 452
 * resource indicated by url.
438 453
 * @note When the resource indicated by url has been opened in

Also available in: Unified diff