Users can't make anything with its content. Making it opaque might allow us to avoid one level of indirection.
Unified · Split
| @@ -14,6 +14,9 @@ libavutil: 2021-04-27 · 13 unmodified lines | ||
| 14 | 14 | |
| 15 | 15 | API changes, most recent first: |
| 16 | 16 | |
| 17 | +2022-10-03 - xxxxxxxxxx - lavf 59.34.100 - avio.h | |
| 18 | + Make AVIODirContext an opaque type in a future major version bump. | |
| 19 | + | |
| 17 | 20 | 2022-09-27 - 0c0a3deb18 - lavu 57.38.100 - cpu.h |
| 18 | 21 | Add CPU flags for RISC-V vector extensions: |
| 19 | 22 | AV_CPU_FLAG_RVV_I32, AV_CPU_FLAG_RVV_F32, AV_CPU_FLAG_RVV_I64, |
| @@ -528,6 +528,12 @@ int ffurl_delete(const char *url) · 527 unmodified lines | ||
| 528 | 528 | return ret; |
| 529 | 529 | } |
| 530 | 530 | |
| 531 | +#if !FF_API_AVIODIRCONTEXT | |
| 532 | +struct AVIODirContext { | |
| 533 | + struct URLContext *url_context; | |
| 534 | +}; | |
| 535 | +#endif | |
| 536 | + | |
| 531 | 537 | int avio_open_dir(AVIODirContext **s, const char *url, AVDictionary **options) |
| 532 | 538 | { |
| 533 | 539 | URLContext *h = NULL; |
| @@ -101,9 +101,13 @@ typedef struct AVIODirEntry { · 100 unmodified lines | ||
| 101 | 101 | int64_t filemode; /**< Unix file mode, -1 if unknown. */ |
| 102 | 102 | } AVIODirEntry; |
| 103 | 103 | |
| 104 | +#if FF_API_AVIODIRCONTEXT | |
| 104 | 105 | typedef struct AVIODirContext { |
| 105 | 106 | struct URLContext *url_context; |
| 106 | 107 | } AVIODirContext; |
| 108 | +#else | |
| 109 | +typedef struct AVIODirContext AVIODirContext; | |
| 110 | +#endif | |
| 107 | 111 | |
| 108 | 112 | /** |
| 109 | 113 | * Different data types that can be returned via the AVIO |
| @@ -31,7 +31,7 @@ · 30 unmodified lines | ||
| 31 | 31 | |
| 32 | 32 | #include "version_major.h" |
| 33 | 33 | |
| 34 | −#define LIBAVFORMAT_VERSION_MINOR 33 | |
| 34 | +#define LIBAVFORMAT_VERSION_MINOR 34 | |
| 35 | 35 | #define LIBAVFORMAT_VERSION_MICRO 100 |
| 36 | 36 | |
| 37 | 37 | #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ |
| @@ -47,6 +47,7 @@ · 46 unmodified lines | ||
| 47 | 47 | #define FF_HLS_TS_OPTIONS (LIBAVFORMAT_VERSION_MAJOR < 60) |
| 48 | 48 | #define FF_API_AVSTREAM_CLASS (LIBAVFORMAT_VERSION_MAJOR > 59) |
| 49 | 49 | #define FF_API_GET_END_PTS (LIBAVFORMAT_VERSION_MAJOR < 60) |
| 50 | +#define FF_API_AVIODIRCONTEXT (LIBAVFORMAT_VERSION_MAJOR < 60) | |
| 50 | 51 | |
| 51 | 52 | |
| 52 | 53 | #define FF_API_R_FRAME_RATE 1 |