API changes, most recent first:
+2021-04-27 - xxxxxxxxxx - lavd yyyyyyyyy - avdevice.h
+ avdevice_list_input_sources and avdevice_list_output_sinks now accept
+ pointers to const AVInputFormat resp. const AVOutputFormat.
+
2021-04-27 - xxxxxxxxxx - lavf yyyyyyyyy - avformat.h
av_find_best_stream now uses a const AVCodec ** parameter
for the returned decoder.
}
#if CONFIG_AVDEVICE
-static int print_device_sources(AVInputFormat *fmt, AVDictionary *opts)
+static int print_device_sources(const AVInputFormat *fmt, AVDictionary *opts)
{
int ret, i;
AVDeviceInfoList *device_list = NULL;
return ret;
}
-static int print_device_sinks(AVOutputFormat *fmt, AVDictionary *opts)
+static int print_device_sinks(const AVOutputFormat *fmt, AVDictionary *opts)
{
int ret, i;
AVDeviceInfoList *device_list = NULL;
return ret;
}
-int avdevice_list_input_sources(AVInputFormat *device, const char *device_name,
+int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
AVDictionary *device_options, AVDeviceInfoList **device_list)
{
AVFormatContext *s = NULL;
return list_devices_for_context(s, device_options, device_list);
}
-int avdevice_list_output_sinks(AVOutputFormat *device, const char *device_name,
+int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
AVDictionary *device_options, AVDeviceInfoList **device_list)
{
AVFormatContext *s = NULL;
* @return count of autodetected devices, negative on error.
* @note device argument takes precedence over device_name when both are set.
*/
-int avdevice_list_input_sources(struct AVInputFormat *device, const char *device_name,
+int avdevice_list_input_sources(const AVInputFormat *device, const char *device_name,
AVDictionary *device_options, AVDeviceInfoList **device_list);
-int avdevice_list_output_sinks(struct AVOutputFormat *device, const char *device_name,
+int avdevice_list_output_sinks(const AVOutputFormat *device, const char *device_name,
AVDictionary *device_options, AVDeviceInfoList **device_list);
/**