Revision f1ef2cd9 libavformat/avio.h

View differences:

libavformat/avio.h
601 601
#endif
602 602

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

  
618
/**
619 604
 * Create and initialize a AVIOContext for accessing the
620 605
 * resource indicated by url.
621 606
 * @note When the resource indicated by url has been opened in

Also available in: Unified diff