Open taojishou opened 1 month ago
@taojishou It works fine for me on ffmpeg version 6.1.1.
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'.
../nginx-vod-module/vod/thumb/thumb_grabber.c:112:9: error: ‘avcodec_close’ is deprecated [-Werror=deprecated-declarations] 112 | avcodec_close(state->decoder); | ^
~~~~