فهرست منبع

deps/libff: Add ff_supports_pcm_in_mp4()

derrod 2 سال پیش
والد
کامیت
d53ed7daed
2فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 9 0
      deps/libff/libff/ff-util.c
  2. 1 0
      deps/libff/libff/ff-util.h

+ 9 - 0
deps/libff/libff/ff-util.c

@@ -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 - 0
deps/libff/libff/ff-util.h

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