Enables log and statistics redirection. * @@ -1608,7 +1618,7 @@ class FFmpegKitFactory { } static getVersion() { - return "4.5.1"; + return "4.5.2"; } static getLogRedirectionStrategy(sessionId) { @@ -2474,7 +2484,7 @@ export class MediaInformation { /** * Returns duration. * - * @return media duration in milliseconds + * @return media duration in "seconds.microseconds" format */ getDuration() { return this.getStringProperty(MediaInformation.KEY_DURATION); diff --git a/scripts/android/ffmpeg.sh b/scripts/android/ffmpeg.sh index 08b4384..e2af2ac 100755 --- a/scripts/android/ffmpeg.sh +++ b/scripts/android/ffmpeg.sh @@ -401,7 +401,7 @@ ${SED_INLINE} 's/static int av_log_level/__thread int av_log_level/g' "${BASEDIR # 2. Enable ffmpeg-kit protocols if [[ ${NO_FFMPEG_KIT_PROTOCOLS} == "1" ]]; then - ${SED_INLINE} "s/ av_set_fd_close/\/\/av_set_fd_close/g" "${BASEDIR}"/android/ffmpeg-kit-android-lib/src/main/cpp/ffmpegkit.c 1>>"${BASEDIR}"/build.log 2>&1 + ${SED_INLINE} "s| av_set_saf|//av_set_saf|g" "${BASEDIR}"/android/ffmpeg-kit-android-lib/src/main/cpp/ffmpegkit.c 1>>"${BASEDIR}"/build.log 2>&1 echo -e "\nINFO: Disabled custom ffmpeg-kit protocols\n" 1>>"${BASEDIR}"/build.log 2>&1 else cat ../../tools/protocols/libavformat_file.c >> libavformat/file.c