Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Me nochange #3779

Draft
wants to merge 54 commits into
base: openh264v2.3.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
013c75d
Disable -Werror on mingw/gcc12 until #3533 is fixed.
jrmuizel Jun 7, 2022
96a1f7b
Add ASAN build configuration
jrmuizel Jun 7, 2022
9986d59
Add fuzzing to CI
jrmuizel Jun 7, 2022
062f9cb
fix oss-fuzz issue-45607. checking if reference pic count < maximum r…
xiaotiansf Jun 17, 2022
fa3f9a2
Add platform-gnu.mk
sthibaul Aug 18, 2022
ef27036
WelsThread: port to GNU/Hurd
sthibaul Aug 18, 2022
b9d3491
meson: Don't use gas-preprocessor and armasm when building for arm64 …
mstorsjo Sep 20, 2022
0c19a5c
update so version (#3576)
GuangweiWang Sep 22, 2022
db95667
Save xmm7 in DyadicBilinearQuarterDownsampler_sse
randomascii Oct 21, 2022
8422de8
correct the download link for v2.3.0 (#3593)
GuangweiWang Nov 28, 2022
9003acb
remove warnings and update SHA1Table (#3594)
GuangweiWang Dec 16, 2022
8535525
temporarily disable ThreadDecoderOutputTest until it is fixed (#3604)
huili2 Dec 22, 2022
d2f5b21
Improve checking for GCC >= 8 and Clang for passing -Wno-class-memacc…
mstorsjo Dec 22, 2022
b044589
Silence warnings from Clang about using bitwise | with boolean operan…
mstorsjo Dec 22, 2022
886b9a5
update github workflow checkout version (#3606)
GuangweiWang Dec 22, 2022
a52d3b1
update enc metrics QP (#3603)
huili2 Dec 22, 2022
0b2ef5e
Use WelsSnprintf instead of direct snprintf in tests (#3608)
mstorsjo Dec 22, 2022
e6a1e91
just run git actions for pull request (#3609)
GuangweiWang Dec 22, 2022
4d8729c
revert pull request #3609 (#3610)
GuangweiWang Dec 22, 2022
be615a4
Add LoongArch SIMD. (#3587)
wangluls Dec 23, 2022
c4156d5
Add unit test for IdctResAddPred8x8_c/lsx (#3591)
jinboson Dec 23, 2022
b16f0c2
pick up PR#3261 (#3599)
GuangweiWang Dec 27, 2022
045aeac
Switch building of the unittest from Ant to Gradle (#3612)
mstorsjo Jan 4, 2023
f8aeaae
Use getauxval to detect cpu capabilities (#3628)
jinboson Feb 28, 2023
290eea3
Fix PSkip fast algorithm from screen-sharing (#3638)
YCSun-Meta Mar 24, 2023
09a4f3e
Fix NOMINMAX macro redefined issue (#3641)
YCSun-Meta Mar 29, 2023
1772156
Bump the API version to add support for new requirements from Firefox…
aosmond Apr 20, 2023
6967c09
Avoid providing a warning if the requested number of threads is the (…
hmaarrfk Apr 20, 2023
9866066
add simd optimizations and fix for loongarch (#3649)
jinboson Apr 20, 2023
8f7fc38
compatible build with android-ndk-r18
BenzhengZhang Aug 14, 2023
008465e
compatible build with andrandroid-ndk-r18 (#3672)
BenzhengZhang Oct 8, 2023
986bd65
Fix for out of bounds read issue by introducing bounds check on iPicB…
calvano-fb Oct 23, 2023
859a08c
A fuzzer found a null pointer dereference in welsDecoderExt.c (#3686)
calvano-fb Oct 23, 2023
b3feec2
emscripten processor count (#3667)
jozefchutka Oct 23, 2023
15d02fc
Use Ant compile demo and UT projects when NDK version lower than r18 …
BenzhengZhang Oct 23, 2023
34e14ea
update openh264 version to v2.4.0 (#3691)
BenzhengZhang Oct 27, 2023
34a0d2d
update release note (#3703)
BenzhengZhang Nov 24, 2023
fd66e67
Fix off by one regression in decoder (#3704)
kalev Dec 4, 2023
cfbd589
Add security policy (#3708)
pnacht Dec 14, 2023
4f01c15
Fix glitches that sometimes happen near the scene changes. (#3707)
tyan0 Jan 19, 2024
b29fd81
update openh264 version to v2.4.1 (#3724)
BenzhengZhang Jan 29, 2024
c59550a
update release note (#3726)
BenzhengZhang Jan 30, 2024
c0e5ea2
Fix regression in PR#3707 for multi-thread decoding (#3734)
tyan0 Apr 1, 2024
28b533a
Fix WelsTraceCallback conversion. (#3722)
ayamir Apr 1, 2024
f86f0e4
Revert "Fix WelsTraceCallback conversion. (#3722)" (#3739)
BenzhengZhang Apr 1, 2024
1debdae
Fix crash on multi-thread decoding. (#3736)
tyan0 Apr 10, 2024
1c23887
Fix race issue among decoding threads which causes broken frame. (#3735)
tyan0 Apr 18, 2024
de02617
Remove unused pSpatialLayer variable in DetermineTemporalSettings (#3…
fippo Jul 1, 2024
478e5ab
Change picOrderCnt to 2 (#3752)
fippo Jul 3, 2024
4ab86b8
fix cross compile from darwin arm64 to x86_64 (#3716)
zhuzeitou Jul 11, 2024
e0bbb7f
Fix deadlock at the end of decoding. (#3767)
tyan0 Jul 18, 2024
fa6d099
Fix frame-decode errors. (#3723)
tyan0 Aug 5, 2024
cea886e
build: fix build with meson on riscv64 (#3773)
ziyao233 Aug 19, 2024
3668daf
Enable pac bti support (#3775)
billatarm Aug 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 45 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: sudo apt-get update -qq
- run: sudo apt-get install -qq nasm g++-multilib gcc-multilib libc6-dev-i386 python3-pip python3-setuptools
- run: sudo python3 -m pip install meson==0.52.1 ninja
Expand All @@ -25,10 +25,22 @@ jobs:
- run: ./run_Test.sh BinaryCompare Adobe_PDF_sample_a_1024x768_50Frms.264
- run: ./run_Test.sh BinaryCompare Zhling_1280x720.264

asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update -qq
- run: sudo apt-get install -qq nasm
- run: nasm -v
- run: c++ --version
- run: make gtest-bootstrap
- run: LDFLAGS=-fsanitize=address CFLAGS=-fsanitize=address make -j$(nproc)
- run: ./codec_unittest

windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: choco install nasm
# nasm is not installed into the $PATH so add it manually
- run: echo "C:\Program Files\NASM" >> $env:GITHUB_PATH
Expand Down Expand Up @@ -56,19 +68,22 @@ jobs:
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-nasm
mingw-w64-x86_64-meson
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: c++ --version
- run: make gmp-bootstrap
- run: make gtest-bootstrap
- run: CFLAGS=-Werror make -j$(nproc) all plugin test
- run: meson builddir --werror
# disable Werror on gcc 12 until #3533 is fixed.
#- run: CFLAGS=-Werror make -j$(nproc) all plugin test
- run: make -j$(nproc) all plugin test
#- run: meson builddir --werror
- run: meson builddir
- run: ninja -C builddir -v
- run: meson test -C builddir -v

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: brew install nasm meson
- run: make gmp-bootstrap
- run: make gtest-bootstrap
Expand All @@ -82,7 +97,7 @@ jobs:
linux-cross-arm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: sudo apt-get update -qq
- run: sudo apt-get install -qq g++-arm-linux-gnueabihf g++-aarch64-linux-gnu qemu-user
- run: arm-linux-gnueabihf-g++ --version
Expand All @@ -96,8 +111,30 @@ jobs:
macos-cross-arm64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: make gmp-bootstrap
- run: make gtest-bootstrap
- run: c++ --version
- run: CFLAGS=-Werror make -j$(sysctl -n hw.ncpu) ARCH=arm64

fuzzing:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'openh264'
language: c++
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'openh264'
language: c++
fuzz-seconds: 600
- name: Upload Crash
uses: actions/upload-artifact@v1
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
path: ./out/artifacts
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@ codec/build/iOS/dec/welsdec/build/
# editor files
*~

# android gradle integration – regenerated when the project is opened in Android Studio
/.idea/
/.gradle/
/gradle/
/gradlew.bat
/local.properties
29 changes: 26 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ LIBDIR_NAME=lib
SHAREDLIB_DIR=$(PREFIX)/lib
PROJECT_NAME=openh264
MODULE_NAME=gmpopenh264
GMP_API_BRANCH=Firefox39
GMP_API_BRANCH=Firefox114_2
GTEST_VER=release-1.8.1
CCASFLAGS=$(CFLAGS)
STATIC_LDFLAGS=-lstdc++
STRIP ?= strip
USE_STACK_PROTECTOR = Yes
USE_LOW_VERSION_NDK=No
USE_ANT=No

SHAREDLIB_MAJORVERSION=6
FULL_VERSION := 2.3.0
SHAREDLIB_MAJORVERSION=7
FULL_VERSION := 2.4.1

ifeq (,$(wildcard $(SRC_PATH)gmp-api))
HAVE_GMP_API=No
Expand Down Expand Up @@ -80,7 +82,17 @@ endif
# Make sure the all target is the first one
all: libraries binaries

ifeq (android, $(OS))
USE_LOW_VERSION_NDK = $(shell $(SRC_PATH)build/ndk-version-check.sh $(NDKROOT))
ifeq (Yes, $(USE_LOW_VERSION_NDK))
USE_ANT = Yes
include $(SRC_PATH)build/platform-android-r18b.mk
else
include $(SRC_PATH)build/platform-android.mk
endif
else
include $(SRC_PATH)build/platform-$(OS).mk
endif

MODULE := $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIX)

Expand Down Expand Up @@ -364,11 +376,22 @@ endif
ifeq (android,$(OS))
ifeq (./,$(SRC_PATH))
codec_unittest$(EXEEXT):
ifeq ($(USE_ANT), Yes)
cd ./test/build/android && $(NDKROOT)/ndk-build -B APP_ABI=$(APP_ABI) && android update project -t $(TARGET) -p . && ant debug
else
$(NDK_BUILD) -C test/build/android -B
./gradlew unittest:assembleDebug
endif

clean_Android: clean_Android_ut
clean_Android_ut:
ifeq ($(USE_ANT), Yes)
-cd ./test/build/android && $(NDKROOT)/ndk-build APP_ABI=$(APP_ABI) clean && ant clean
else
-$(NDK_BUILD) -C test/build/android -B clean
-./gradlew unittest:clean
endif

endif
endif

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ See <http://mesonbuild.com/Installing.html> for instructions on how to
install meson, then:

``` shell
meson builddir
meson setup builddir
ninja -C builddir
```

Expand Down
21 changes: 19 additions & 2 deletions RELEASES
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@

Releases
-----------
v2.4.1
------
- Fix off by one regression in decoder
- Add security policy
- Fix glitches that sometimes happen near the scene changes

v2.4.0
------
- Add LoongArch SIMD
- Support Android NDK r20 (also r21)
- Support using gradle to build Android demo and unittest
- Bug fixes

v2.3.1
------
- update SHAREDLIB_MAJORVERSION value in Makefile

v2.3.0
------
- Decoder bug fix to correct the B-frame order in some case
Expand Down Expand Up @@ -231,8 +248,8 @@ http://ciscobinary.openh264.org/libopenh264-2.3.0-linux32.6.so.bz2
http://ciscobinary.openh264.org/libopenh264-2.3.0-linux64.6.so.bz2
http://ciscobinary.openh264.org/libopenh264-2.3.0-linux-arm.6.so.bz2
http://ciscobinary.openh264.org/libopenh264-2.3.0-linux-arm64.6.so.bz2
http://ciscobinary.openh264.org/libopenh264-2.3.0-osx-arm64.6.dylib.bz2
http://ciscobinary.openh264.org/libopenh264-2.3.0-osx-x64.6.dylib.bz2
http://ciscobinary.openh264.org/libopenh264-2.3.0-mac-arm64.6.dylib.bz2
http://ciscobinary.openh264.org/libopenh264-2.3.0-mac-x64.6.dylib.bz2
http://ciscobinary.openh264.org/openh264-2.3.0-win32.dll.bz2
http://ciscobinary.openh264.org/openh264-2.3.0-win64.dll.bz2

Expand Down
16 changes: 16 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Security Policy

If you have discovered a security vulnerability in this project, please report it
privately. **Do not disclose it as a public issue.** This gives us time to work with you
to fix the issue before public exposure, reducing the chance that the exploit will be
used before a patch is released.

You may submit the report as an email to [email protected].

Please provide the following information in your report:

- A description of the vulnerability and its impact
- How to reproduce the issue

This project is maintained on a reasonable-effort basis. As such, please give us 90 days to
work on a fix before public exposure.
30 changes: 30 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
}
}

allprojects {
repositories {
google()
jcenter()
}
}

apply plugin: 'idea'

idea.module {
excludeDirs -= file("build")
excludeDirs += file(".idea")
excludeDirs += file("gradle")
sourceDirs += file("build")
sourceDirs += file("codec")
testSourceDirs += file("test")
testSourceDirs += file("autotest")
resourceDirs += file("res")
resourceDirs += file("docs")
}
22 changes: 22 additions & 0 deletions build/ndk-version-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
#**********************************************************************************
# This script is using in Makefile to check the ndk version:
#
# --usage:
# ./ndk-version-check.sh ndkroot
#
# date: 10/20/2023 Created
#**********************************************************************************

NDK_PATH=$1
if [ ! -n "$NDK_PATH" ]
then
exit 1
fi
NDK_VERSION=${NDK_PATH##*/}
NDK_VERSION_NUM=`echo $NDK_VERSION | tr -cd "[0-9]"`

if [ $NDK_VERSION_NUM -le 18 ]
then
echo "Yes"
fi
Loading
Loading