Revision 32b80696

View differences:

libavformat/avio.h
357 357
 * one call to another. Thus you should not trust the returned value,
358 358
 * unless you are sure that no other processes are accessing the
359 359
 * checked resource.
360
 *
361
 * @note This function is slightly broken until next major bump
362
 *       because of AVIO_RDONLY == 0. Don't use it until then.
363 360
 */
364 361
int avio_check(const char *url, int flags);
365 362

  
......
530 527
 * constants, optionally ORed with other flags.
531 528
 * @{
532 529
 */
533
#if LIBAVFORMAT_VERSION_MAJOR < 53
534
#define AVIO_RDONLY 0  /**< read-only */
535
#define AVIO_WRONLY 1  /**< write-only */
536
#define AVIO_RDWR   2  /**< read-write */
537
#else
538 530
#define AVIO_RDONLY 1  /**< read-only */
539 531
#define AVIO_WRONLY 2  /**< write-only */
540 532
#define AVIO_RDWR   4  /**< read-write */
541
#endif
542 533
/**
543 534
 * @}
544 535
 */
......
555 546
 * Warning: non-blocking protocols is work-in-progress; this flag may be
556 547
 * silently ignored.
557 548
 */
558
#if LIBAVFORMAT_VERSION_MAJOR < 53
559
#define AVIO_FLAG_NONBLOCK 4
560
#else
561 549
#define AVIO_FLAG_NONBLOCK 8
562
#endif
563 550

  
564 551
/**
565 552
 * Create and initialize a AVIOContext for accessing the

Also available in: Unified diff