Projects
Essentials
kvazaar
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 12
View file
kvazaar.spec
Changed
@@ -27,6 +27,7 @@ Group: Productivity/Multimedia/Video/Editors and Convertors Url: http://ultravideo.cs.tut.fi/#encoder Source0: https://github.com/ultravideo/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: kvazaar.memset.patch BuildRequires: automake BuildRequires: findutils BuildRequires: gcc >= 4.4 @@ -59,6 +60,7 @@ %prep %setup -q +%patch0 -p1 %build autoreconf -fvi
View file
kvazaar.memset.patch
Added
@@ -0,0 +1,24 @@ +gcc7-7.1.1+r248152-1.2 +[ 112s] rdo.c: In function 'kvz_rdoq': +[ 112s] rdo.c:563:14: error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size] +[ 112s] case 16: memset(sig_coeffgroup_flag, 0, 16 * sizeof(sig_coeffgroup_flag[0])); break; +--- a/src/rdo.c ++++ b/src/rdo.c +@@ -555,6 +555,7 @@ void kvz_rdoq(encoder_state_t * const st + + uint32_t cg_num = width * height >> 4; + ++#if 0 + // Explicitly tell the only possible numbers of elements to be zeroed. + // Hope the compiler is able to utilize this information. + switch (cg_num) { +@@ -564,6 +565,9 @@ void kvz_rdoq(encoder_state_t * const st + case 64: memset(sig_coeffgroup_flag, 0, 64 * sizeof(sig_coeffgroup_flag[0])); break; + default: assert(0 && "There should be 1, 4, 16 or 64 coefficient groups"); + } ++#else ++ memset(&sig_coeffgroup_flag, 0, sizeof(sig_coeffgroup_flag)); ++#endif + + cabac_ctx_t *base_coeff_group_ctx = &(cabac->ctx.cu_sig_coeff_group_model[type]); + cabac_ctx_t *baseCtx = (type == 0) ? &(cabac->ctx.cu_sig_model_luma[0]) : &(cabac->ctx.cu_sig_model_chroma[0]);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.