0
0
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:
derrod 2023-05-03 12:36:31 +02:00 committed by Lain
parent a2b8ff2e35
commit d53ed7daed
2 changed files with 10 additions and 0 deletions

View File

@ -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
}

View File

@ -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
}