Revision f1ef2cd9 libavformat/avio_internal.h

View differences:

libavformat/avio_internal.h
47 47
    avio_wl32(pb, MKTAG(s[0], s[1], s[2], s[3]));
48 48
}
49 49

  
50
/**
51
 * Rewind the AVIOContext using the specified buffer containing the first buf_size bytes of the file.
52
 * Used after probing to avoid seeking.
53
 * Joins buf and s->buffer, taking any overlap into consideration.
54
 * @note s->buffer must overlap with buf or they can't be joined and the function fails
55
 *
56
 * @param s The read-only AVIOContext to rewind
57
 * @param buf The probe buffer containing the first buf_size bytes of the file
58
 * @param buf_size The size of buf
59
 * @return 0 in case of success, a negative value corresponding to an
60
 * AVERROR code in case of failure
61
 */
62
int ffio_rewind_with_probe_data(AVIOContext *s, unsigned char *buf, int buf_size);
63

  
50 64
#endif // AVFORMAT_AVIO_INTERNAL_H

Also available in: Unified diff