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

Not compiling, ffpyplayer/pic.c is ussing deprecated av_get_channel_layout_nb_channels function #166

Open
mrechte opened this issue Aug 16, 2024 · 0 comments

Comments

@mrechte
Copy link

mrechte commented Aug 16, 2024

This will not compile with recent FFmpeg version (ffmpeg version n7.0.1)

      gcc -fno-strict-overflow -DNDEBUG -g -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -I/usr/include/SDL2 -I/usr/include/SDL2 -I/tmp/pip-req-build-hd1wv8xq/ffpyplayer -I/tmp/pip-req-build-hd1wv8xq/ffpyplayer/includes -I/home/mrechte/AEFFACER/include -I/usr/include/python3.12 -c /tmp/pip-req-build-hd1wv8xq/ffpyplayer/pic.c -o build/temp.linux-x86_64-cpython-312/tmp/pip-req-build-hd1wv8xq/ffpyplayer/pic.o -O3 -fno-strict-aliasing -Wno-error
      Dans le fichier inclus depuis /tmp/pip-req-build-hd1wv8xq/ffpyplayer/clib/misc.h:5,
                       depuis /tmp/pip-req-build-hd1wv8xq/ffpyplayer/pic.c:780:
      /tmp/pip-req-build-hd1wv8xq/ffpyplayer/clib/../includes/ffconfig.h:7:9: attention: « SDL_VERSION_ATLEAST » redéfini
          7 | #define SDL_VERSION_ATLEAST(X, Y, Z) (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
            |         ^~~~~~~~~~~~~~~~~~~
      Dans le fichier inclus depuis /usr/include/SDL2/SDL.h:62,
                       depuis /tmp/pip-req-build-hd1wv8xq/ffpyplayer/pic.c:752:
      /usr/include/SDL2/SDL_version.h:120:9: note: ceci est l'emplacement d’une précédente définition
        120 | #define SDL_VERSION_ATLEAST(X, Y, Z) \
            |         ^~~~~~~~~~~~~~~~~~~
      /tmp/pip-req-build-hd1wv8xq/ffpyplayer/pic.c: Dans la fonction « __pyx_f_10ffpyplayer_3pic_get_valid_channel_layout »:
      /tmp/pip-req-build-hd1wv8xq/ffpyplayer/pic.c:3566:17: erreur: déclaration implicite de la fonction « av_get_channel_layout_nb_channels » [-Wimplicit-function-declaration]
       3566 |   __pyx_t_2 = ((av_get_channel_layout_nb_channels(__pyx_v_channel_layout) == __pyx_v_channels) != 0);
            |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

No branches or pull requests

1 participant