Revision 230a4686

View differences:

libavformat/avio.h
111 111
#endif
112 112

  
113 113
/**
114
 * Passing this as the "whence" parameter to a seek function causes it to
115
 * return the filesize without seeking anywhere. Supporting this is optional.
116
 * If it is not supported then the seek function will return <0.
117
 */
118
#define AVSEEK_SIZE 0x10000
119

  
120
/**
121 114
 * Change the position that will be used by the next read/write
122 115
 * operation on the resource accessed by h.
123 116
 *
......
220 213
int64_t av_url_read_seek(URLContext *h, int stream_index,
221 214
                         int64_t timestamp, int flags);
222 215

  
223
/**
224
 * Oring this flag as into the "whence" parameter to a seek function causes it to
225
 * seek by any means (like reopening and linear reading) or other normally unreasonble
226
 * means that can be extreemly slow.
227
 * This may be ignored by the seek code.
228
 */
229
#define AVSEEK_FORCE 0x20000
230

  
231 216
#define URL_PROTOCOL_FLAG_NESTED_SCHEME 1 /*< The protocol name can be the first part of a nested protocol scheme */
232 217

  
233 218
typedef struct URLProtocol {
......
474 459
int avio_put_str16le(AVIOContext *s, const char *str);
475 460

  
476 461
/**
462
 * Passing this as the "whence" parameter to a seek function causes it to
463
 * return the filesize without seeking anywhere. Supporting this is optional.
464
 * If it is not supported then the seek function will return <0.
465
 */
466
#define AVSEEK_SIZE 0x10000
467

  
468
/**
469
 * Oring this flag as into the "whence" parameter to a seek function causes it to
470
 * seek by any means (like reopening and linear reading) or other normally unreasonble
471
 * means that can be extreemly slow.
472
 * This may be ignored by the seek code.
473
 */
474
#define AVSEEK_FORCE 0x20000
475

  
476
/**
477 477
 * fseek() equivalent for AVIOContext.
478 478
 * @return new position or AVERROR.
479 479
 */

Also available in: Unified diff