Source: octave-video
Version: 2.0.2-1
Severity: important
X-Debbugs-Cc: sramac...@debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

octave-video FTBFS with ffmpeg 5.0 in experimental:
| g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-I/usr/include/octave-6.4.0/octave/.. -I/usr/include/octave-6.4.0/octave  
-pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -g  -Wall -Wdate-time 
-O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security  -I/usr/include/x86_64-linux-gnu  
-DPACKAGE_NAME="Octave-Forge video package" 
-DPACKAGE_TARNAME="octave-forge-video-package" -DPACKAGE_VERSION="2.0.2" 
-DPACKAGE_STRING="Octave-Forge video package 2.0.2" -DPACKAGE_BUGREPORT="" 
-DPACKAGE_URL="" -D_FORTIFY_SOURCE=2 cap_ffmpeg_wrapper.cc -o /tmp/oct-eKTjwQ.o
| In file included from cap_ffmpeg_wrapper.cc:18:
| cap_ffmpeg_impl_ov.hpp: In member function ‘const char* 
CvCapture_FFMPEG::get_video_codec_name() const’:
| cap_ffmpeg_impl_ov.hpp:529:51: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|   529 |         return _opencv_avcodec_get_name(video_st->codec->codec_id);
|       |                                                   ^~~~~
| cap_ffmpeg_impl_ov.hpp: In member function ‘void CvCapture_FFMPEG::init()’:
| cap_ffmpeg_impl_ov.hpp:607:5: error: ‘av_register_all’ was not declared in 
this scope
|   607 |     av_register_all();
|       |     ^~~~~~~~~~~~~~~
| cap_ffmpeg_impl_ov.hpp: In member function ‘void CvCapture_FFMPEG::close()’:
| cap_ffmpeg_impl_ov.hpp:655:34: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|   655 |         avcodec_close( video_st->codec );
|       |                                  ^~~~~
| cap_ffmpeg_impl_ov.hpp: At global scope:
| cap_ffmpeg_impl_ov.hpp:845:39: error: ‘AVLockOp’ has not been declared
|   845 | static int LockCallBack(void **mutex, AVLockOp op)
|       |                                       ^~~~~~~~
| cap_ffmpeg_impl_ov.hpp: In function ‘int LockCallBack(void**, int)’:
| cap_ffmpeg_impl_ov.hpp:850:14: error: ‘AV_LOCK_CREATE’ was not declared in 
this scope; did you mean ‘AV_LOG_TRACE’?
|   850 |         case AV_LOCK_CREATE:
|       |              ^~~~~~~~~~~~~~
|       |              AV_LOG_TRACE
| cap_ffmpeg_impl_ov.hpp:859:14: error: ‘AV_LOCK_OBTAIN’ was not declared in 
this scope
|   859 |         case AV_LOCK_OBTAIN:
|       |              ^~~~~~~~~~~~~~
| cap_ffmpeg_impl_ov.hpp:863:14: error: ‘AV_LOCK_RELEASE’ was not declared in 
this scope
|   863 |         case AV_LOCK_RELEASE:
|       |              ^~~~~~~~~~~~~~~
| cap_ffmpeg_impl_ov.hpp:867:14: error: ‘AV_LOCK_DESTROY’ was not declared in 
this scope
|   867 |         case AV_LOCK_DESTROY:
|       |              ^~~~~~~~~~~~~~~
| cap_ffmpeg_impl_ov.hpp: In constructor 
‘InternalFFMpegRegister::InternalFFMpegRegister()’:
| cap_ffmpeg_impl_ov.hpp:904:9: error: ‘av_register_all’ was not declared in 
this scope
|   904 |         av_register_all();
|       |         ^~~~~~~~~~~~~~~
| cap_ffmpeg_impl_ov.hpp:907:9: error: ‘av_lockmgr_register’ was not declared 
in this scope
|   907 |         av_lockmgr_register(&LockCallBack);
|       |         ^~~~~~~~~~~~~~~~~~~
| cap_ffmpeg_impl_ov.hpp: In destructor 
‘InternalFFMpegRegister::~InternalFFMpegRegister()’:
| cap_ffmpeg_impl_ov.hpp:924:9: error: ‘av_lockmgr_register’ was not declared 
in this scope
|   924 |         av_lockmgr_register(NULL);
|       |         ^~~~~~~~~~~~~~~~~~~
| cap_ffmpeg_impl_ov.hpp: In member function ‘bool CvCapture_FFMPEG::open(const 
char*)’:
| cap_ffmpeg_impl_ov.hpp:969:42: error: invalid conversion from ‘const 
AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
|   969 |       input_format = av_find_input_format(entry->value);
|       |                      ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
|       |                                          |
|       |                                          const AVInputFormat*
| cap_ffmpeg_impl_ov.hpp:997:47: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|   997 |         AVCodecContext *enc = ic->streams[i]->codec;
|       |                                               ^~~~~
| cap_ffmpeg_impl_ov.hpp:1020:45: error: invalid conversion from ‘const 
AVCodec*’ to ‘AVCodec*’ [-fpermissive]
|  1020 |                 codec = avcodec_find_decoder(enc->codec_id);
|       |                         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
|       |                                             |
|       |                                             const AVCodec*
| cap_ffmpeg_impl_ov.hpp:1022:53: error: invalid conversion from ‘const 
AVCodec*’ to ‘AVCodec*’ [-fpermissive]
|  1022 |                 codec = 
avcodec_find_decoder_by_name(av_dict_get(dict, "video_codec", NULL, 0)->value);
|       |                         
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |                                                     |
|       |                                                     const AVCodec*
| cap_ffmpeg_impl_ov.hpp: In member function ‘bool 
CvCapture_FFMPEG::grabFrame()’:
| cap_ffmpeg_impl_ov.hpp:1123:45: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1123 |             avcodec_decode_video2(video_st->codec, picture, 
&got_picture, &packet);
|       |                                             ^~~~~
| cap_ffmpeg_impl_ov.hpp:1123:13: error: ‘avcodec_decode_video2’ was not 
declared in this scope; did you mean ‘avcodec_decode_subtitle2’?
|  1123 |             avcodec_decode_video2(video_st->codec, picture, 
&got_picture, &packet);
|       |             ^~~~~~~~~~~~~~~~~~~~~
|       |             avcodec_decode_subtitle2
| cap_ffmpeg_impl_ov.hpp:1139:40: error: ‘AVFrame’ {aka ‘struct AVFrame’} has 
no member named ‘pkt_pts’; did you mean ‘pkt_dts’?
|  1139 |                 picture_pts = picture->pkt_pts != AV_NOPTS_VALUE_ && 
picture->pkt_pts != 0 ? picture->pkt_pts : picture->pkt_dts;
|       |                                        ^~~~~~~
|       |                                        pkt_dts
| cap_ffmpeg_impl_ov.hpp:1139:79: error: ‘AVFrame’ {aka ‘struct AVFrame’} has 
no member named ‘pkt_pts’; did you mean ‘pkt_dts’?
|  1139 |                 picture_pts = picture->pkt_pts != AV_NOPTS_VALUE_ && 
picture->pkt_pts != 0 ? picture->pkt_pts : picture->pkt_dts;
|       |                                                                       
        ^~~~~~~
|       |                                                                       
        pkt_dts
| cap_ffmpeg_impl_ov.hpp:1139:103: error: ‘AVFrame’ {aka ‘struct AVFrame’} has 
no member named ‘pkt_pts’; did you mean ‘pkt_dts’?
|  1139 |                 picture_pts = picture->pkt_pts != AV_NOPTS_VALUE_ && 
picture->pkt_pts != 0 ? picture->pkt_pts : picture->pkt_dts;
|       |                                                                       
                                ^~~~~~~
|       |                                                                       
                                pkt_dts
| In file included from cap_ffmpeg_wrapper.cc:18:
| cap_ffmpeg_impl_ov.hpp: In member function ‘bool 
CvCapture_FFMPEG::retrieveFrame(int, unsigned char**, int*, int*, int*, int*)’:
| cap_ffmpeg_impl_ov.hpp:1171:34: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1171 |         frame.width != video_st->codec->width ||
|       |                                  ^~~~~
| cap_ffmpeg_impl_ov.hpp:1172:35: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1172 |         frame.height != video_st->codec->height ||
|       |                                   ^~~~~
| cap_ffmpeg_impl_ov.hpp:1177:38: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1177 |         int buffer_width = video_st->codec->coded_width, 
buffer_height = video_st->codec->coded_height;
|       |                                      ^~~~~
| cap_ffmpeg_impl_ov.hpp:1181:31: error: ‘buffer_height’ was not declared in 
this scope; did you mean ‘buffer_width’?
|  1181 |                 buffer_width, buffer_height,
|       |                               ^~~~~~~~~~~~~
|       |                               buffer_width
| cap_ffmpeg_impl_ov.hpp:1182:27: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1182 |                 video_st->codec->pix_fmt,
|       |                           ^~~~~
| cap_ffmpeg_impl_ov.hpp:1211:33: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1211 |         frame.width = video_st->codec->width;
|       |                                 ^~~~~
| cap_ffmpeg_impl_ov.hpp:1212:34: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1212 |         frame.height = video_st->codec->height;
|       |                                  ^~~~~
| cap_ffmpeg_impl_ov.hpp:1222:26: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1222 |             0, video_st->codec->coded_height,
|       |                          ^~~~~
| cap_ffmpeg_impl_ov.hpp: In member function ‘double 
CvCapture_FFMPEG::get_fps() const’:
| cap_ffmpeg_impl_ov.hpp:1339:52: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1339 |         fps = 1.0 / r2d(ic->streams[video_stream]->codec->time_base);
|       |                                                    ^~~~~
| cap_ffmpeg_impl_ov.hpp: In member function ‘void 
CvCapture_FFMPEG::seek(int64_t)’:
| cap_ffmpeg_impl_ov.hpp:1386:58: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1386 |         avcodec_flush_buffers(ic->streams[video_stream]->codec);
|       |                                                          ^~~~~
| cap_ffmpeg_impl_ov.hpp: In member function ‘const char* 
CvVideoWriter_FFMPEG::get_video_codec_name() const’:
| cap_ffmpeg_impl_ov.hpp:1502:51: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1502 |         return _opencv_avcodec_get_name(video_st->codec->codec_id);
|       |                                                   ^~~~~
| cap_ffmpeg_impl_ov.hpp: In member function ‘void 
CvVideoWriter_FFMPEG::init()’:
| cap_ffmpeg_impl_ov.hpp:1596:5: error: ‘av_register_all’ was not declared in 
this scope
|  1596 |     av_register_all();
|       |     ^~~~~~~~~~~~~~~
| cap_ffmpeg_impl_ov.hpp: In function ‘AVStream* 
icv_add_video_stream_FFMPEG(AVFormatContext*, AVCodecID, int, int, int, double, 
int)’:
| cap_ffmpeg_impl_ov.hpp:1676:13: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1676 |     c = st->codec;
|       |             ^~~~~
| cap_ffmpeg_impl_ov.hpp:1682:57: error: ‘AVFormatContext’ {aka ‘struct 
AVFormatContext’} has no member named ‘filename’
|  1682 |     c->codec_id = av_guess_codec(oc->oformat, NULL, oc->filename, 
NULL, AVMEDIA_TYPE_VIDEO);
|       |                                                         ^~~~~~~~
| cap_ffmpeg_impl_ov.hpp:1692:33: error: invalid conversion from ‘const 
AVCodec*’ to ‘AVCodec*’ [-fpermissive]
|  1692 |     codec = avcodec_find_encoder(c->codec_id);
|       |             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
|       |                                 |
|       |                                 const AVCodec*
| cap_ffmpeg_impl_ov.hpp:1699:5: error: ‘avcodec_get_context_defaults3’ was not 
declared in this scope
|  1699 |     avcodec_get_context_defaults3(c, codec);
|       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cap_ffmpeg_impl_ov.hpp: In function ‘int 
icv_av_write_frame_FFMPEG(AVFormatContext*, AVStream*, uint8_t*, uint32_t, 
AVFrame*)’:
| cap_ffmpeg_impl_ov.hpp:1821:36: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1821 |     AVCodecContext * c = video_st->codec;
|       |                                    ^~~~~
| cap_ffmpeg_impl_ov.hpp:1852:15: error: ‘avcodec_encode_video2’ was not 
declared in this scope; did you mean ‘avcodec_encode_subtitle’?
|  1852 |         ret = avcodec_encode_video2(c, &pkt, picture, &got_output);
|       |               ^~~~~~~~~~~~~~~~~~~~~
|       |               avcodec_encode_subtitle
| cap_ffmpeg_impl_ov.hpp: In member function ‘bool 
CvVideoWriter_FFMPEG::writeFrame(const unsigned char*, int, int, int, int, 
int)’:
| cap_ffmpeg_impl_ov.hpp:1917:35: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  1917 |     AVCodecContext *c = video_st->codec;
|       |                                   ^~~~~
| cap_ffmpeg_impl_ov.hpp: In member function ‘void 
CvVideoWriter_FFMPEG::close()’:
| cap_ffmpeg_impl_ov.hpp:2035:19: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  2035 |     if( video_st->codec->pix_fmt != input_pix_fmt)
|       |                   ^~~~~
| cap_ffmpeg_impl_ov.hpp:2051:29: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  2051 |     avcodec_close(video_st->codec);
|       |                             ^~~~~
| cap_ffmpeg_impl_ov.hpp: In member function ‘bool 
CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, bool)’:
| cap_ffmpeg_impl_ov.hpp:2153:26: error: invalid conversion from ‘const 
AVOutputFormat*’ to ‘AVOutputFormat*’ [-fpermissive]
|  2153 |     fmt = av_guess_format(NULL, filename, NULL);
|       |           ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
|       |                          |
|       |                          const AVOutputFormat*
| cap_ffmpeg_impl_ov.hpp:2236:18: error: ‘AVFormatContext’ {aka ‘struct 
AVFormatContext’} has no member named ‘filename’
|  2236 |     snprintf(oc->filename, sizeof(oc->filename), "%s", filename);
|       |                  ^~~~~~~~
| cap_ffmpeg_impl_ov.hpp:2236:39: error: ‘AVFormatContext’ {aka ‘struct 
AVFormatContext’} has no member named ‘filename’
|  2236 |     snprintf(oc->filename, sizeof(oc->filename), "%s", filename);
|       |                                       ^~~~~~~~
| cap_ffmpeg_impl_ov.hpp:2384:20: error: ‘AVStream’ {aka ‘struct AVStream’} has 
no member named ‘codec’
|  2384 |     c = (video_st->codec);
|       |                    ^~~~~
| cap_ffmpeg_impl_ov.hpp:2391:33: error: invalid conversion from ‘const 
AVCodec*’ to ‘AVCodec*’ [-fpermissive]
|  2391 |     codec = avcodec_find_encoder(c->codec_id);
|       |             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
|       |                                 |
|       |                                 const AVCodec*
| cap_ffmpeg_wrapper.cc: In function ‘octave_value_list 
F__ffmpeg_output_formats__(const octave_value_list&, int)’:
| cap_ffmpeg_wrapper.cc:61:3: error: ‘av_register_all’ was not declared in this 
scope
|    61 |   av_register_all();
|       |   ^~~~~~~~~~~~~~~
| cap_ffmpeg_wrapper.cc:66:30: error: ‘av_oformat_next’ was not declared in 
this scope; did you mean ‘av_opt_next’?
|    66 |   AVOutputFormat * oformat = av_oformat_next(NULL);
|       |                              ^~~~~~~~~~~~~~~
|       |                              av_opt_next
| cap_ffmpeg_wrapper.cc: In function ‘octave_value_list F__writer_open__(const 
octave_value_list&, int)’:
| cap_ffmpeg_wrapper.cc:416:7: error: ‘av_register_all’ was not declared in 
this scope
|   416 |       av_register_all();
|       |       ^~~~~~~~~~~~~~~
| cap_ffmpeg_wrapper.cc:435:49: error: invalid conversion from ‘const 
AVOutputFormat*’ to ‘AVOutputFormat*’ [-fpermissive]
|   435 |       AVOutputFormat* foo = av_guess_format     (NULL, filename.c_str 
(), NULL);
|       |                             
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |                                                 |
|       |                                                 const AVOutputFormat*
| make[1]: *** [Makefile:12: cap_ffmpeg_wrapper.oct] Error 1

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature

Reply via email to