From 4ee8ef86081a9be9307af722d95f33ab1b848832 Mon Sep 17 00:00:00 2001 From: Samuel Audet Date: Fri, 3 Mar 2023 11:22:22 +0900 Subject: [PATCH] * Upgrade dependencies for FFmpeg 6.0 (issue #1693) --- CHANGELOG.md | 2 +- platform/pom.xml | 2 +- pom.xml | 2 +- src/main/java/org/bytedeco/javacv/FFmpegFrameRecorder.java | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 166f3972..4dda2e0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ * Fix `FFmpegFrameGrabber.grab()` not returning audio frames buffered by the codec ([issue #1971](https://github.com/bytedeco/javacv/issues/1971)) - * Upgrade dependencies for OpenCV 4.7.0, librealsense2 2.53.1, Leptonica 1.83.0, Tesseract 5.3.0 + * Upgrade dependencies for OpenCV 4.7.0, FFmpeg 6.0 ([issue #1693](https://github.com/bytedeco/javacv/issues/1693)), librealsense2 2.53.1, Leptonica 1.83.0, Tesseract 5.3.0 ### November 2, 2022 version 1.5.8 * Override `FFmpegFrameGrabber.getVideoCodecName()/getAudioCodecName()` to return names of opened codecs ([pull #1901](https://github.com/bytedeco/javacv/pull/1901)) diff --git a/platform/pom.xml b/platform/pom.xml index b04137ba..8b5a0acd 100644 --- a/platform/pom.xml +++ b/platform/pom.xml @@ -38,7 +38,7 @@ org.bytedeco ffmpeg-platform - 5.1.2-${javacpp.version} + 6.0-${javacpp.version} org.bytedeco diff --git a/pom.xml b/pom.xml index d3a57d19..2a19dbcd 100644 --- a/pom.xml +++ b/pom.xml @@ -80,7 +80,7 @@ org.bytedeco ffmpeg - 5.1.2-${javacpp.version} + 6.0-${javacpp.version} org.bytedeco diff --git a/src/main/java/org/bytedeco/javacv/FFmpegFrameRecorder.java b/src/main/java/org/bytedeco/javacv/FFmpegFrameRecorder.java index 91cc5e25..92115a9f 100644 --- a/src/main/java/org/bytedeco/javacv/FFmpegFrameRecorder.java +++ b/src/main/java/org/bytedeco/javacv/FFmpegFrameRecorder.java @@ -637,7 +637,7 @@ public synchronized void startUnsafe() throws Exception { } if ((video_codec.capabilities() & AV_CODEC_CAP_EXPERIMENTAL) != 0) { - video_c.strict_std_compliance(AVCodecContext.FF_COMPLIANCE_EXPERIMENTAL); + video_c.strict_std_compliance(FF_COMPLIANCE_EXPERIMENTAL); } if (maxBFrames >= 0) { @@ -752,7 +752,7 @@ public synchronized void startUnsafe() throws Exception { } if ((audio_codec.capabilities() & AV_CODEC_CAP_EXPERIMENTAL) != 0) { - audio_c.strict_std_compliance(AVCodecContext.FF_COMPLIANCE_EXPERIMENTAL); + audio_c.strict_std_compliance(FF_COMPLIANCE_EXPERIMENTAL); } }