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

error: implicit declaration of function 'mp_csp_to_avcol_spc' #226

Open
bocchi810 opened this issue Jan 23, 2024 · 5 comments
Open

error: implicit declaration of function 'mp_csp_to_avcol_spc' #226

bocchi810 opened this issue Jan 23, 2024 · 5 comments

Comments

@bocchi810
Copy link

if i build the mpv, i got this error
this is my log:

[93/256] Compiling C object libmpv.so.2.2.0.p/filters_f_lavfi.c.o
FAILED: libmpv.so.2.2.0.p/filters_f_lavfi.c.o 
cc -Ilibmpv.so.2.2.0.p -I. -I.. -Icommon -Ietc -Iplayer/javascript -Iplayer/lua -Isub -Ivideo/out -I/home/hhm/mpv-build-master/build_libs/include -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -Wall -Winvalid-pch -std=c11 -O3 -D_FILE_OFFSET_BITS=64 -Werror=implicit-function-declaration -Wempty-body -Wdisabled-optimization -Wstrict-prototypes -Wno-format-zero-length -Wno-redundant-decls -Wvla -Wno-format-truncation -Wimplicit-fallthrough -fno-math-errno -Wformat -Werror=format-security -Wundef -Wmissing-prototypes -Wshadow -Wno-switch -Wparentheses -Wpointer-arith -Wno-pointer-sign -Wno-unused-result -D_GNU_SOURCE -fPIC -fPIC -pthread -DPL_HAVE_PTHREAD -DPTHREAD_HAS_SETCLOCK -DPL_STATIC -MD -MQ libmpv.so.2.2.0.p/filters_f_lavfi.c.o -MF libmpv.so.2.2.0.p/filters_f_lavfi.c.o.d -o libmpv.so.2.2.0.p/filters_f_lavfi.c.o -c ../filters/f_lavfi.c
../filters/f_lavfi.c: In function 'init_pads':
../filters/f_lavfi.c:496:35: error: implicit declaration of function 'mp_csp_to_avcol_spc' [-Werror=implicit-function-declaration]
  496 |             params->color_space = mp_csp_to_avcol_spc(fmt->params.color.space);
      |                                   ^~~~~~~~~~~~~~~~~~~
../filters/f_lavfi.c:496:72: error: 'struct pl_color_space' has no member named 'space'
  496 |             params->color_space = mp_csp_to_avcol_spc(fmt->params.color.space);
      |                                                                        ^
../filters/f_lavfi.c:497:35: error: implicit declaration of function 'mp_csp_levels_to_avcol_range' [-Werror=implicit-function-declaration]
  497 |             params->color_range = mp_csp_levels_to_avcol_range(fmt->params.color.levels);
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../filters/f_lavfi.c:497:81: error: 'struct pl_color_space' has no member named 'levels'
  497 |             params->color_range = mp_csp_levels_to_avcol_range(fmt->params.color.levels);
      |                                                                                 ^
cc1: some warnings being treated as errors
[98/256] Compiling C object libmpv.so.2.2.0.p/demux_demux_mkv.c.o
ninja: build stopped: subcommand failed.
@Dudemanguy
Copy link
Member

Just git pull mpv again and it should work.

@bocchi810
Copy link
Author

Just git pull mpv again and it should work.

I did this but the problem is still not solved

@Dudemanguy
Copy link
Member

Dudemanguy commented Jan 23, 2024

What commit is the mpv repo on? The latest at this time of writing is 7f595aa.

@bocchi810
Copy link
Author

What commit is the mpv repo on? The latest at this time of writing is 7f595aa.

It's 7f595aa too

@llyyr
Copy link

llyyr commented Jan 23, 2024

What commit is the mpv repo on? The latest at this time of writing is 7f595aa.

It's 7f595aa too

That doesn't make any sense, the error you're getting is fixed by mpv-player/mpv@d00a00e

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

3 participants