commit | 3fcf95935950ad3fc4bf37eee8fb6e4c77c62339 | [log] [tgz] |
---|---|---|
author | Ram Mohan M <ram.mohan@ittiam.com> | Wed Sep 27 19:57:45 2023 +0530 |
committer | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | Wed Sep 27 13:57:19 2023 -0700 |
tree | 82c6b3950512279185a62a9cfd0be2f2f820add8 | |
parent | 2ff6f153766723731d9eb101ef8b2373356d638f [diff] |
libavcenc: relocate the update post enc routines During bitstream overflow errors, it is possible that update post enc gets skipped as last row might never have to be entropy coded as we have already consumed the buffer. This can be fatal for encoding further frames. Move this update to a location where it is guaranteed to be updated Bug: oss-fuzz-62378 Test: ./avc_enc_fuzzer Change-Id: I279deb1f30c15c057c0b6e909834313a1df4fdac
Supports:
Use the following commands for building on the target machine
$ cd external/libavc $ mkdir build $ cd build $ cmake .. $ make
$ cd external/libavc $ mkdir build $ cd build $ CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" cmake .. $ make
Update ‘CMAKE_C_COMPILER’, ‘CMAKE_CXX_COMPILER’, ‘CMAKE_C_COMPILER_AR’, and ‘CMAKE_CXX_COMPILER_AR’ in CMAKE_TOOLCHAIN_FILE passed below
$ cd external/libavc $ mkdir build $ cd build
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake $ make
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake $ make