deps-libff: Add extensions to format description
This commit is contained in:
parent
5b97cfbbdd
commit
091a002c37
10
deps/libff/libff/ff-util.c
vendored
10
deps/libff/libff/ff-util.c
vendored
@ -27,6 +27,7 @@ struct ff_format_desc {
|
||||
const char *name;
|
||||
const char *long_name;
|
||||
const char *mime_type;
|
||||
const char *extensions;
|
||||
enum AVCodecID audio_codec;
|
||||
enum AVCodecID video_codec;
|
||||
const struct AVCodecTag * const *codec_tags;
|
||||
@ -283,6 +284,7 @@ const struct ff_format_desc *ff_format_supported()
|
||||
d->name = output_format->name;
|
||||
d->long_name = output_format->long_name;
|
||||
d->mime_type = output_format->mime_type;
|
||||
d->extensions = output_format->extensions;
|
||||
d->codec_tags = output_format->codec_tag;
|
||||
|
||||
if (current != NULL) {
|
||||
@ -320,6 +322,14 @@ const char *ff_format_desc_mime_type(const struct ff_format_desc *format_desc)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char *ff_format_desc_extensions(const struct ff_format_desc *format_desc)
|
||||
{
|
||||
if (format_desc != NULL)
|
||||
return format_desc->extensions;
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool ff_format_desc_has_audio(const struct ff_format_desc *format_desc)
|
||||
{
|
||||
if (format_desc != NULL)
|
||||
|
1
deps/libff/libff/ff-util.h
vendored
1
deps/libff/libff/ff-util.h
vendored
@ -54,6 +54,7 @@ void ff_format_desc_free(const struct ff_format_desc *format_desc);
|
||||
const char *ff_format_desc_name(const struct ff_format_desc *format_desc);
|
||||
const char *ff_format_desc_long_name(const struct ff_format_desc *format_desc);
|
||||
const char *ff_format_desc_mime_type(const struct ff_format_desc *format_desc);
|
||||
const char *ff_format_desc_extensions(const struct ff_format_desc *format_desc);
|
||||
bool ff_format_desc_has_audio(const struct ff_format_desc *format_desc);
|
||||
bool ff_format_desc_has_video(const struct ff_format_desc *format_desc);
|
||||
int ff_format_desc_audio(const struct ff_format_desc *format_desc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user