Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834388 - media-plugins/audacious-plugins-4.1 with ffmpeg-5.0: ffaudio-core.cc:291:36: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
Summary: media-plugins/audacious-plugins-4.1 with ffmpeg-5.0: ffaudio-core.cc:291:36: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 19:57 UTC by Kobboi
Modified: 2023-01-21 05:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,6.74 KB, application/gzip)
2022-02-28 19:58 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 19:58 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 19:57:55 UTC
Successfully compiled alsa.cc (plugin).
Successfully compiled ko.po.
Successfully compiled lh5dec.cc (plugin).
Successfully compiled lt.po.
Successfully compiled lv.po.
Successfully compiled ml_IN.po.
ffaudio-core.cc: In constructor ‘ScopedPacket::ScopedPacket()’:
ffaudio-core.cc:103:26: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  103 |         { av_init_packet (this); }
      |           ~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/libavformat/avformat.h:316,
                 from ffaudio-stdinc.h:26,
                 from ffaudio-core.cc:24:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
ffaudio-core.cc: In function ‘AVInputFormat* get_format_by_content(const char*, VFSFile&)’:
ffaudio-core.cc:291:36: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  291 |         f = av_probe_input_format2 (& d, true, & score);
      |             ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
      |                                    |
      |                                    const AVInputFormat*
ffaudio-core.cc: In function ‘bool find_codec(AVFormatContext*, CodecInfo*)’:
ffaudio-core.cc:364:52: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  364 |             AVCodec * codec = avcodec_find_decoder (stream->codecpar->codec_id);
      |                               ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                    |
      |                                                    const AVCodec*
Successfully linked compressor.so.
ffaudio-core.cc: In member function ‘virtual bool FFaudio::play(const char*, VFSFile&)’:
ffaudio-core.cc:572:28: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  572 |             av_init_packet (& tmp);
      |             ~~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/libavformat/avformat.h:316,
                 from ffaudio-stdinc.h:26,
                 from ffaudio-core.cc:24:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
Successfully compiled seekable_stream_callbacks.cc (plugin).
Successfully compiled wav.cc (plugin).
Leaving directory compressor.
Entering directory skins-qt.
Successfully linked silence-removal.so.
Successfully linked tonegen.so.
Successfully compiled ms.po.


Reproducible: Always
Comment 1 Kobboi 2022-02-28 19:58:26 UTC
Created attachment 766039 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 19:58:28 UTC
Created attachment 766040 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 19:58:46 UTC
Compiles fine with ffmpeg-4.4.1
Comment 4 Kobboi 2022-02-28 19:59:50 UTC
Compiles fine with USE=-ffmpeg and ffmpeg-5.0
Comment 5 Miroslav Šulc gentoo-dev 2022-08-10 05:58:50 UTC
is version 4.2 affected too?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 05:42:27 UTC
Looks like it should be OK.