Open derkrasseleo opened 1 year ago
I have to remove ffmpeg from my dependencies, I only use it to load audio and it is a headache.
So I don't have a wrong version or something? Because I read here that in a newer version, they deprecated AVStream
I'll just remove the dependency of ffmpeg completely. I will do it some day.
I confirm the issue in Manjaro as well: In file included from /usr/include/SDL2/SDL_opengl.h:38: /usr/include/SDL2/SDL_config.h:542:58: warning: '_HAVE_STDINT_H' is not defined, evaluates to 0 [-Wundef]
^
./app.cpp:661:35: error: no member named 'codec' in 'AVStream' AVCodecContext *codec = stream->codec;
./app.cpp:707:9: error: use of undeclared identifier 'avcodec_decode_audio4'; did you mean 'avcodec_decode_subtitle2'?
if (avcodec_decode_audio4(codec, frame, &gotFrame, packet) < 0)
^~~~~~~~~~~~~~~~~~~~~
avcodec_decode_subtitle2
/usr/include/libavcodec/avcodec.h:2545:5: note: 'avcodec_decode_subtitle2' declared here
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
^
./app.cpp:707:38: error: cannot initialize a parameter of type 'AVSubtitle *' with an lvalue of type 'AVFrame *'
if (avcodec_decode_audio4(codec, frame, &gotFrame, packet) < 0)
^~~~~
/usr/include/libavcodec/avcodec.h:2545:65: note: passing argument to parameter 'sub' here
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
^
1 warning and 3 errors generated.
terminate called after throwing an instance of 'int'
Aborted (core dumped)
I don't know if I have installed all dependencies correctly, do you know what could be the problem here?
multilib/lib32-sdl2 2.24.2-1
extra/sdl2 2.24.2-1