summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTae-Young Chung <ty83.chung@samsung.com>2024-02-22 13:12:24 +0900
committerTae-Young Chung <ty83.chung@samsung.com>2024-02-22 14:22:13 +0900
commit258758a97cea27d9d0eaf3f9b54eeee05df10024 (patch)
tree08177f4babe4022dcf5aed71a2ac2cc49171b5e3
parentb13a8278e4d586137cc5418497f5249133bfcfa6 (diff)
downloadopencv-accepted/tizen_unified_toolchain.tar.gz
opencv-accepted/tizen_unified_toolchain.tar.bz2
opencv-accepted/tizen_unified_toolchain.zip
[Version] : 4.7.0-7 [Issue type] : bug fix Videoio's FFMPEG backend causes segfault while opening a video file. A root cause is missing 'TIZEN_FEATURE_LIBAV', which is defined in FFMPEG, from building OpenCV. Change-Id: I330cc3af6d5ec8a1ed20eb38650bb22f0991280d Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
-rw-r--r--packaging/opencv.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/opencv.spec b/packaging/opencv.spec
index 887d33781e..e375d204f0 100644
--- a/packaging/opencv.spec
+++ b/packaging/opencv.spec
@@ -7,7 +7,7 @@
Name: opencv
Summary: OpenCV library
Version: 4.7.0
-Release: 6
+Release: 7
Group: Development/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
@@ -88,6 +88,10 @@ ARCH=riscv64
# compatibility to opencv3
sed -i 's/opencv4.pc/opencv.pc/g' cmake/OpenCVGenPkgconfig.cmake
+# FFMPEG's TIZEN_FEATURE_LIBAV feature.
+export CFLAGS+=" -DTIZEN_FEATURE_LIBAV"
+export CXXFLAGS+=" -DTIZEN_FEATURE_LIBAV"
+
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \