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

Bug#1004620: olive-editor: FTBFS with ffmpeg 5.0



Source: olive-editor
Version: 20200620-2
Severity: important
X-Debbugs-Cc: sramacher@debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

olive-editor with ffmpeg 5.0 (in experimental):
| [  9%] Building CXX object app/CMakeFiles/olive-editor.dir/codec/oiio/oiiodecoder.cpp.o
| cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/app && /usr/lib/ccache/c++ -DAPPVERSION=\"0.2.0\" -DGITHASH=\"\" -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/app -I/<<PKGBUILDDIR>>/app -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/app/olive-editor_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Werror -Wuninitialized -pedantic-errors -Wall -Wextra -Wno-unused-parameter -Wshadow -fPIC -std=c++11 -MD -MT app/CMakeFiles/olive-editor.dir/codec/oiio/oiiodecoder.cpp.o -MF CMakeFiles/olive-editor.dir/codec/oiio/oiiodecoder.cpp.o.d -o CMakeFiles/olive-editor.dir/codec/oiio/oiiodecoder.cpp.o -c /<<PKGBUILDDIR>>/app/codec/oiio/oiiodecoder.cpp
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegcommon.cpp: In static member function ‘static AVPixelFormat olive::FFmpegCommon::GetCompatiblePixelFormat(const AVPixelFormat&)’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegcommon.cpp:35:10: error: ‘avcodec_find_best_pix_fmt_of_list’ was not declared in this scope
|    35 |   return avcodec_find_best_pix_fmt_of_list(possible_pix_fmts,
|       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| make[3]: *** [app/CMakeFiles/olive-editor.dir/build.make:710: app/CMakeFiles/olive-editor.dir/codec/ffmpeg/ffmpegcommon.cpp.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp: In member function ‘virtual bool olive::FFmpegEncoder::Open()’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:80:53: error: invalid use of incomplete type ‘struct AVCodecContext’
|    80 |     AVPixelFormat encoder_pix_fmt = video_codec_ctx_->pix_fmt;
|       |                                                     ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp: In member function ‘virtual bool olive::FFmpegEncoder::WriteFrame(olive::FramePtr, olive::rational)’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:135:43: error: invalid use of incomplete type ‘struct AVCodecContext’
|   135 |   encoded_frame->format = video_codec_ctx_->pix_fmt;
|       |                                           ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:163:74: error: invalid use of incomplete type ‘struct AVCodecContext’
|   163 |   encoded_frame->pts = qRound64(time.toDouble() / av_q2d(video_codec_ctx_->time_base));
|       |                                                                          ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp: In member function ‘virtual void olive::FFmpegEncoder::WriteAudio(olive::AudioParams, const QString&)’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:180:49: error: invalid use of incomplete type ‘struct AVCodecContext’
|   180 |     int maximum_frame_samples = audio_codec_ctx_->frame_size;
|       |                                                 ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:193:83: error: invalid use of incomplete type ‘struct AVCodecContext’
|   193 |                                              static_cast<int64_t>(audio_codec_ctx_->channel_layout),
|       |                                                                                   ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:194:62: error: invalid use of incomplete type ‘struct AVCodecContext’
|   194 |                                              audio_codec_ctx_->sample_fmt,
|       |                                                              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:195:62: error: invalid use of incomplete type ‘struct AVCodecContext’
|   195 |                                              audio_codec_ctx_->sample_rate,
|       |                                                              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:208:45: error: invalid use of incomplete type ‘struct AVCodecContext’
|   208 |     frame->channel_layout = audio_codec_ctx_->channel_layout;
|       |                                             ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:210:37: error: invalid use of incomplete type ‘struct AVCodecContext’
|   210 |     frame->format = audio_codec_ctx_->sample_fmt;
|       |                                     ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:219:63: error: invalid use of incomplete type ‘struct AVCodecContext’
|   219 |                                               audio_codec_ctx_->sample_rate,
|       |                                                               ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp: In member function ‘virtual void olive::FFmpegEncoder::Close()’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:293:5: error: ‘avcodec_free_context’ was not declared in this scope; did you mean ‘avformat_free_context’?
|   293 |     avcodec_free_context(&video_codec_ctx_);
|       |     ^~~~~~~~~~~~~~~~~~~~
|       |     avformat_free_context
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:298:5: error: ‘avcodec_free_context’ was not declared in this scope; did you mean ‘avformat_free_context’?
|   298 |     avcodec_free_context(&audio_codec_ctx_);
|       |     ^~~~~~~~~~~~~~~~~~~~
|       |     avformat_free_context
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp: In member function ‘bool olive::FFmpegEncoder::WriteAVFrame(AVFrame*, AVCodecContext*, AVStream*)’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:323:20: error: ‘avcodec_send_frame’ was not declared in this scope; did you mean ‘avcodec_get_name’?
|   323 |   int error_code = avcodec_send_frame(codec_ctx, frame);
|       |                    ^~~~~~~~~~~~~~~~~~
|       |                    avcodec_get_name
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:335:18: error: ‘avcodec_receive_packet’ was not declared in this scope
|   335 |     error_code = avcodec_receive_packet(codec_ctx, pkt);
|       |                  ^~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:348:40: error: invalid use of incomplete type ‘struct AVCodecContext’
|   348 |     av_packet_rescale_ts(pkt, codec_ctx->time_base, stream->time_base);
|       |                                        ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp: In member function ‘bool olive::FFmpegEncoder::InitializeStream(AVMediaType, AVStream**, AVCodecContext**, const olive::ExportCodec::Codec&)’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:419:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
|   419 |   AVCodec* encoder = avcodec_find_encoder(codec_id);
|       |                      ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
|       |                                          |
|       |                                          const AVCodec*
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:440:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   440 |     codec_ctx->width = params().video_params().width();
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:441:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   441 |     codec_ctx->height = params().video_params().height();
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:442:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   442 |     codec_ctx->sample_aspect_ratio = {1, 1};
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:443:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   443 |     codec_ctx->time_base = params().video_params().time_base().toAVRational();
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:446:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   446 |     codec_ctx->pix_fmt = encoder->pix_fmts[0];
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:453:36: error: invalid use of incomplete type ‘struct AVCodecContext’
|   453 |         av_opt_set(video_codec_ctx_->priv_data, i.key().toUtf8(), i.value().toUtf8(), AV_OPT_SEARCH_CHILDREN);
|       |                                    ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:457:25: error: invalid use of incomplete type ‘struct AVCodecContext’
|   457 |         video_codec_ctx_->bit_rate = params().video_bit_rate();
|       |                         ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:461:25: error: invalid use of incomplete type ‘struct AVCodecContext’
|   461 |         video_codec_ctx_->rc_max_rate = params().video_max_bit_rate();
|       |                         ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:465:25: error: invalid use of incomplete type ‘struct AVCodecContext’
|   465 |         video_codec_ctx_->rc_buffer_size = static_cast<int>(params().video_buffer_size());
|       |                         ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:470:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   470 |     codec_ctx->sample_rate = params().audio_params().sample_rate();
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:471:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   471 |     codec_ctx->channel_layout = params().audio_params().channel_layout();
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:472:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   472 |     codec_ctx->channels = av_get_channel_layout_nb_channels(codec_ctx->channel_layout);
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:472:70: error: invalid use of incomplete type ‘struct AVCodecContext’
|   472 |     codec_ctx->channels = av_get_channel_layout_nb_channels(codec_ctx->channel_layout);
|       |                                                                      ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:473:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   473 |     codec_ctx->sample_fmt = encoder->sample_fmts[0];
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:474:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   474 |     codec_ctx->time_base = {1, codec_ctx->sample_rate};
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:474:41: error: invalid use of incomplete type ‘struct AVCodecContext’
|   474 |     codec_ctx->time_base = {1, codec_ctx->sample_rate};
|       |                                         ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp: In member function ‘bool olive::FFmpegEncoder::InitializeCodecContext(AVStream**, AVCodecContext**, AVCodec*)’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:493:16: error: ‘avcodec_alloc_context3’ was not declared in this scope; did you mean ‘avio_alloc_context’?
|   493 |   *codec_ctx = avcodec_alloc_context3(codec);
|       |                ^~~~~~~~~~~~~~~~~~~~~~
|       |                avio_alloc_context
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp: In member function ‘bool olive::FFmpegEncoder::SetupCodecContext(AVStream*, AVCodecContext*, AVCodec*)’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:507:14: error: invalid use of incomplete type ‘struct AVCodecContext’
|   507 |     codec_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
|       |              ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:507:25: error: ‘AV_CODEC_FLAG_GLOBAL_HEADER’ was not declared in this scope
|   507 |     codec_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
|       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:521:16: error: ‘avcodec_open2’ was not declared in this scope; did you mean ‘avio_open2’?
|   521 |   error_code = avcodec_open2(codec_ctx, codec, &codec_opts);
|       |                ^~~~~~~~~~~~~
|       |                avio_open2
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:528:16: error: ‘avcodec_parameters_from_context’ was not declared in this scope; did you mean ‘avcodec_parameters_free’?
|   528 |   error_code = avcodec_parameters_from_context(stream->codecpar, codec_ctx);
|       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |                avcodec_parameters_free
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp: In member function ‘void olive::FFmpegEncoder::FlushCodecCtx(AVCodecContext*, AVStream*)’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:550:3: error: ‘avcodec_send_frame’ was not declared in this scope; did you mean ‘avcodec_get_name’?
|   550 |   avcodec_send_frame(codec_ctx, nullptr);
|       |   ^~~~~~~~~~~~~~~~~~
|       |   avcodec_get_name
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:555:18: error: ‘avcodec_receive_packet’ was not declared in this scope
|   555 |     error_code = avcodec_receive_packet(codec_ctx, pkt);
|       |                  ^~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:562:40: error: invalid use of incomplete type ‘struct AVCodecContext’
|   562 |     av_packet_rescale_ts(pkt, codec_ctx->time_base, stream->time_base);
|       |                                        ^~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.h:25,
|                  from /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegencoder.cpp:21:
| /usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
|   195 | struct AVCodecContext;
|       |        ^~~~~~~~~~~~~~
| make[3]: *** [app/CMakeFiles/olive-editor.dir/build.make:738: app/CMakeFiles/olive-editor.dir/codec/ffmpeg/ffmpegencoder.cpp.o] Error 1
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegdecoder.cpp: In constructor ‘olive::FFmpegDecoderInstance::FFmpegDecoderInstance(const char*, int)’:
| /<<PKGBUILDDIR>>/app/codec/ffmpeg/ffmpegdecoder.cpp:1308:40: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
|  1308 |   AVCodec* codec = avcodec_find_decoder(avstream_->codecpar->codec_id);
|       |                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |                                        |
|       |                                        const AVCodec*
| make[3]: *** [app/CMakeFiles/olive-editor.dir/build.make:724: app/CMakeFiles/olive-editor.dir/codec/ffmpeg/ffmpegdecoder.cpp.o] Error 1

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature


Reply to: