[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1004719: shotdetect: FTBFS with ffmpeg 5.0



Source: shotdetect
Version: 1.0.86-6
Severity: important
X-Debbugs-Cc: sramacher@debian.org
Tags: ftbfs sid bookworm
Usertags: ffmpeg5.0

shotdetect FTBFS with ffmpeg 5.0 (available in experimental):
| g++ -DHAVE_CONFIG_H -I.  -Iinclude -Iresources/   -I/usr/include/x86_64-linux-gnu -I/usr/include/libxml2 -I/usr/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o main.o `test -f 'src/main.cpp' || echo './'`src/main.cpp
| src/film.cpp: In member function ‘void film::update_metadata()’:
| src/film.cpp:146:61: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
|   146 |       this->height = int (pFormatCtx->streams[videoStream]->codec->height);
|       |                                                             ^~~~~
| src/film.cpp:147:60: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
|   147 |       this->width = int (pFormatCtx->streams[videoStream]->codec->width);
|       |                                                            ^~~~~
| src/film.cpp:149:76: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
|   149 |       avcodec_string (buf, sizeof (buf), pFormatCtx->streams[videoStream]->codec, 0);
|       |                                                                            ^~~~~
| src/film.cpp: In member function ‘int film::process()’:
| src/film.cpp:213:3: error: ‘av_register_all’ was not declared in this scope
|   213 |   av_register_all ();
|       |   ^~~~~~~~~~~~~~~
| src/film.cpp:241:39: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
|   241 |       switch (pFormatCtx->streams[j]->codec->codec_type)
|       |                                       ^~~~~
| src/film.cpp:269:58: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
|   269 |       pCodecCtxAudio = pFormatCtx->streams[audioStream]->codec;
|       |                                                          ^~~~~
| src/film.cpp:270:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
|   270 |       pCodecAudio = avcodec_find_decoder (pCodecCtxAudio->codec_id);
|       |                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
|       |                                          |
|       |                                          const AVCodec*
| src/film.cpp:284:53: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
|   284 |       pCodecCtx = pFormatCtx->streams[videoStream]->codec;
|       |                                                     ^~~~~
| src/film.cpp:285:37: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
|   285 |       pCodec = avcodec_find_decoder (pCodecCtx->codec_id);
|       |                ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
|       |                                     |
|       |                                     const AVCodec*
| src/film.cpp:302:18: error: ‘avpicture_get_size’ was not declared in this scope
|   302 |       numBytes = avpicture_get_size (AV_PIX_FMT_RGB24, width, height);
|       |                  ^~~~~~~~~~~~~~~~~~
| src/film.cpp:310:24: error: ‘AVPicture’ was not declared in this scope; did you mean ‘AVPictureType’?
|   310 |       avpicture_fill ((AVPicture *) pFrameRGB, buffer, AV_PIX_FMT_RGB24, width, height);
|       |                        ^~~~~~~~~
|       |                        AVPictureType
| src/film.cpp:310:35: error: expected primary-expression before ‘)’ token
|   310 |       avpicture_fill ((AVPicture *) pFrameRGB, buffer, AV_PIX_FMT_RGB24, width, height);
|       |                                   ^
| src/film.cpp:310:7: error: ‘avpicture_fill’ was not declared in this scope
|   310 |       avpicture_fill ((AVPicture *) pFrameRGB, buffer, AV_PIX_FMT_RGB24, width, height);
|       |       ^~~~~~~~~~~~~~
| src/film.cpp:312:35: error: expected primary-expression before ‘)’ token
|   312 |       avpicture_fill ((AVPicture *) pFrameRGBprev, buffer2, AV_PIX_FMT_RGB24, width, height);
|       |                                   ^
| src/film.cpp:339:25: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
|   339 |           av_init_packet(&avpkt);
|       |           ~~~~~~~~~~~~~~^~~~~~~~
| In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:45,
|                  from include/film.h:21,
|                  from src/film.cpp:18:
| /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here
|   506 | void av_init_packet(AVPacket *pkt);
|       |      ^~~~~~~~~~~~~~
| src/film.cpp:346:11: error: ‘avcodec_decode_video2’ was not declared in this scope; did you mean ‘avcodec_decode_subtitle2’?
|   346 |           avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &avpkt);
|       |           ^~~~~~~~~~~~~~~~~~~~~
|       |           avcodec_decode_subtitle2
| src/film.cpp:407:9: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’?
|   407 |         av_free_packet (&packet);
|       |         ^~~~~~~~~~~~~~
|       |         av_new_packet
| src/film.cpp: In member function ‘void film::process_audio()’:
| src/film.cpp:500:17: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
|   500 |   av_init_packet(&avpkt);
|       |   ~~~~~~~~~~~~~~^~~~~~~~
| In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:45,
|                  from include/film.h:21,
|                  from src/film.cpp:18:
| /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here
|   506 | void av_init_packet(AVPacket *pkt);
|       |      ^~~~~~~~~~~~~~
| src/film.cpp:505:14: error: ‘avcodec_decode_audio4’ was not declared in this scope; did you mean ‘avcodec_decode_subtitle2’?
|   505 |       len1 = avcodec_decode_audio4 (pCodecCtxAudio, frame, &got_output, &avpkt);
|       |              ^~~~~~~~~~~~~~~~~~~~~
|       |              avcodec_decode_subtitle2
| make[2]: *** [Makefile:491: film.o] Error 1

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature


Reply to: