mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
deps/libff: Add ff_supports_pcm_in_mp4()
This commit is contained in:
parent
a2b8ff2e35
commit
d53ed7daed
9
deps/libff/libff/ff-util.c
vendored
9
deps/libff/libff/ff-util.c
vendored
@ -473,3 +473,12 @@ bool ff_format_codec_compatible(const char *codec, const char *format)
|
||||
return avformat_query_codec(output_format, codec_desc->id, FF_COMPLIANCE_NORMAL) == 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool ff_supports_pcm_in_mp4()
|
||||
{
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(60, 5, 100)
|
||||
return false;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
1
deps/libff/libff/ff-util.h
vendored
1
deps/libff/libff/ff-util.h
vendored
@ -64,6 +64,7 @@ ff_format_desc_next(const struct ff_format_desc *format_desc);
|
||||
|
||||
// Utility to check compatibility
|
||||
bool ff_format_codec_compatible(const char *codec, const char *format);
|
||||
bool ff_supports_pcm_in_mp4();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user