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

ffmpeg 6.0 is not supported #1541

Open
taojishou opened this issue Sep 13, 2024 · 2 comments
Open

ffmpeg 6.0 is not supported #1541

taojishou opened this issue Sep 13, 2024 · 2 comments

Comments

@taojishou
Copy link

../nginx-vod-module/vod/thumb/thumb_grabber.c:112:9: error: ‘avcodec_close’ is deprecated [-Werror=deprecated-declarations]
112 | avcodec_close(state->decoder);
| ^~~~~~~~~~~~~

image

@francoism90
Copy link

@taojishou It works fine for me on ffmpeg version 6.1.1.

@billksun
Copy link

For me, it's version 7.0.2 that have this problem:

       > /nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/vod/thumb/thumb_grabber.c:112:9: error: 'avcodec_close' is deprecated [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Werror=deprecated-declarations8;;]
       >   112 |         avcodec_close(state->decoder);
       >       |         ^~~~~~~~~~~~~
       > /nix/store/r3lzivf4j336jbm79941j08x95ravarr-ffmpeg-headless-7.0.2-dev/include/libavcodec/avcodec.h:2387:5: note: declared here
       >  2387 | int avcodec_close(AVCodecContext *avctx);
       >       |     ^~~~~~~~~~~~~
       > cc1: all warnings being treated as errors
       > make[1]: *** [objs/Makefile:2670: objs/addon/thumb/thumb_grabber.o] Error 1
       > make[1]: Leaving directory '/build/nginx-1.26.2'
       > make: *** [Makefile:10: build] Error 2
       For full logs, run 'nix log /nix/store/6f6ha2z9c7sgf1qrcsahq018zxa3w90q-nginx-1.26.2.drv'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants