Comments (8)
would you mind posting a full example of code I should add to avifpng.c?
Try replacing the content of your avifpng.c
file by this.
from libavif.
would you mind posting a full example of code I should add to avifpng.c?
Try replacing the content of your
avifpng.c
file by this.
wow! thanks a lot! it works!
from libavif.
Ah, good ol' -Werror=clobbered
. My favorite!
This should fix it:
I'm going to be adding some new code this week and likely bumping the version afterwards, so if you don't like building from master, expect a proper version tag with this fix in the next couple of days.
from libavif.
Similar favorite one here:
../apps/shared/avifpng.c: In function ‘avifPNGWrite’:
../apps/shared/avifpng.c:143:14: error: variable ‘writeResult’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
143 | avifBool writeResult = AVIF_FALSE;
| ^~~~~~~~~~~
cc1: all warnings being treated as errors
from libavif.
Fixed.
from libavif.
Similar favorite one here:
../apps/shared/avifpng.c: In function ‘avifPNGWrite’: ../apps/shared/avifpng.c:143:14: error: variable ‘writeResult’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered] 143 | avifBool writeResult = AVIF_FALSE; | ^~~~~~~~~~~ cc1: all warnings being treated as errors
almost same here, fix please ;)
FAILED: CMakeFiles/avif_apps.dir/apps/shared/avifpng.c.o
/usr/bin/cc -I../include -O2 -DNDEBUG -Wall -Wextra -Werror -pthread -std=gnu99 -MD -MT CMakeFiles/avif_apps.dir/apps/shared/avifpng.c.o -MF CMakeFiles/avif_apps.dir/apps/shared/avifpng.c.o.d -o CMakeFiles/avif_apps.dir/apps/shared/avifpng.c.o -c ../apps/shared/avifpng.c
../apps/shared/avifpng.c: In function ‘avifPNGWrite’:
../apps/shared/avifpng.c:393:14: error: variable ‘monochrome8bit’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
avifBool monochrome8bit = (avif->yuvFormat == AVIF_PIXEL_FORMAT_YUV400) && !avif->alphaPlane && (avif->depth == 8) &&
^
../apps/shared/avifpng.c:396:9: error: variable ‘colorType’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
int colorType;
^
cc1: all warnings being treated as errors
from libavif.
almost same here, fix please ;)
Is #1151 enough?
from libavif.
almost same here, fix please ;)
Is #1151 enough?
Thanks! I'd like to believe that it is, but I have no idea how to deal with C language :) so would you mind posting a full example of code I should add to avifpng.c?
from libavif.
Related Issues (20)
- ci-windows failure "unknown file: error: SEH exception with code 0xc000001d thrown in the test body" HOT 4
- Sample HDR AVIF decoded to JPG shows incorrect colors HOT 8
- How to build a dynamic library that statically links all dependencies? HOT 1
- Ignore and skip FullBoxes with an unrecognized version
- How to build the.A use of iOS platform? HOT 2
- Make libyuv package-friendly dependency HOT 2
- Roll YCgCo-R out HOT 1
- Add Homebrew install instructions and avifdec/avifenc examples to README HOT 6
- autoconf etc. HOT 1
- avifImageRGBToYUV should set color space to default values HOT 2
- Findrav1e.cmake ignores library dependencies listed in the generated pkgconfig file HOT 5
- [Function Request] avifenc supports svt and rav1e encoder options key-value HOT 2
- MSYS/MinGW32: Linking error, undefined references to Nt file functions HOT 2
- Noticeable color shift HOT 6
- Does CVE-2024-1580 affect libavif with dav1d decoder? HOT 1
- Static build issues on MSYS2 HOT 4
- sharpyuv conversion failed HOT 2
- libavif.a should not be a combined archive library HOT 5
- Not able to build static build on amazon linux 2023 HOT 9
- GIF encodes with wrong frame rate HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libavif.