소스 검색

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
 }