Revision f8bc86d4 libavformat/avio.h

View differences:

libavformat/avio.h
595 595
#endif
596 596

  
597 597
/**
598
 * Rewind the AVIOContext using the specified buffer containing the first buf_size bytes of the file.
599
 * Used after probing to avoid seeking.
600
 * Joins buf and s->buffer, taking any overlap into consideration.
601
 * @note s->buffer must overlap with buf or they can't be joined and the function fails
602
 * @note This function is NOT part of the public API
603
 *
604
 * @param s The read-only AVIOContext to rewind
605
 * @param buf The probe buffer containing the first buf_size bytes of the file
606
 * @param buf_size The size of buf
607
 * @return 0 in case of success, a negative value corresponding to an
608
 * AVERROR code in case of failure
609
 */
610
int ff_rewind_with_probe_data(AVIOContext *s, unsigned char *buf, int buf_size);
611

  
612
/**
613 598
 * Create and initialize a AVIOContext for accessing the
614 599
 * resource indicated by url.
615 600
 * @note When the resource indicated by url has been opened in

Also available in: Unified diff