Unified · Split
| @@ -15,6 +15,9 @@ libavutil: 2017-10-21 · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 16 | API changes, most recent first: |
| 17 | 17 | |
| 18 | +2020-01-30 - xxxxxxxxxx - lavf 58.37.100 - avio.h | |
| 19 | + Add avio_protocol_get_class(). | |
| 20 | + | |
| 18 | 21 | 2020-01-15 - xxxxxxxxxx - lavc 58.66.100 - avcodec.h |
| 19 | 22 | Add AV_PKT_DATA_PRFT and AVProducerReferenceTime. |
| 20 | 23 | |
| @@ -807,6 +807,13 @@ int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer); · 806 unmodified lines | ||
| 807 | 807 | */ |
| 808 | 808 | const char *avio_enum_protocols(void **opaque, int output); |
| 809 | 809 | |
| 810 | +/** | |
| 811 | + * Get AVClass by names of available protocols. | |
| 812 | + * | |
| 813 | + * @return A AVClass of input protocol name or NULL | |
| 814 | + */ | |
| 815 | +const AVClass *avio_protocol_get_class(const char *name); | |
| 816 | + | |
| 810 | 817 | /** |
| 811 | 818 | * Pause and resume playing - only meaningful if using a network streaming |
| 812 | 819 | * protocol (e.g. MMS). |
| @@ -107,6 +107,16 @@ const char *avio_enum_protocols(void **opaque, int output) · 106 unmodified lines | ||
| 107 | 107 | return avio_enum_protocols(opaque, output); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | +const AVClass *avio_protocol_get_class(const char *name) | |
| 111 | +{ | |
| 112 | + int i = 0; | |
| 113 | + for (i = 0; url_protocols[i]; i++) { | |
| 114 | + if (!strcmp(url_protocols[i]->name, name)) | |
| 115 | + return url_protocols[i]->priv_data_class; | |
| 116 | + } | |
| 117 | + return NULL; | |
| 118 | +} | |
| 119 | + | |
| 110 | 120 | const URLProtocol **ffurl_get_protocols(const char *whitelist, |
| 111 | 121 | const char *blacklist) |
| 112 | 122 | { |
| @@ -32,7 +32,7 @@ · 31 unmodified lines | ||
| 32 | 32 | // Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium) |
| 33 | 33 | // Also please add any ticket numbers that you believe might be affected here |
| 34 | 34 | #define LIBAVFORMAT_VERSION_MAJOR 58 |
| 35 | −#define LIBAVFORMAT_VERSION_MINOR 36 | |
| 35 | +#define LIBAVFORMAT_VERSION_MINOR 37 | |
| 36 | 36 | #define LIBAVFORMAT_VERSION_MICRO 100 |
| 37 | 37 | |
| 38 | 38 | #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ |