Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 834400

Summary: media-video/bino-1.6.7 with ffmpeg-5.0: media_object.cpp:348:5: error: ‘av_register_all’ was not declared in this scope
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 831437    
Attachments: build.log.gz
emerge-info.txt

Description Kobboi 2022-02-28 20:42:19 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DHTMLDIR=\"/usr/share/doc/bino-1.6.7/html\" -DLOCALEDIR=\"/usr/share/locale\" -I. -I..     -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr
/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/uuid -I/usr/include/fribidi -pthread  -I/usr/include/AL     -DQT_OPENGL_LIB -I/usr/include/qt5/QtOp
enGL -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -DQT_WIDGETS_LIB -I/usr/include/qt5/QtWidgets -DQT_GUI_LIB -DQT_CORE_LIB      -pthread  -I/usr/include/NVCtrl  -
O2 -march=znver3 -pipe -g -ggdb3 -fPIC -c -o crosstalkdialog-moc.o crosstalkdialog-moc.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DHTMLDIR=\"/usr/share/doc/bino-1.6.7/html\" -DLOCALEDIR=\"/usr/share/locale\" -I. -I..     -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr
/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/uuid -I/usr/include/fribidi -pthread  -I/usr/include/AL     -DQT_OPENGL_LIB -I/usr/include/qt5/QtOp
enGL -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -DQT_WIDGETS_LIB -I/usr/include/qt5/QtWidgets -DQT_GUI_LIB -DQT_CORE_LIB      -pthread  -I/usr/include/NVCtrl  -
O2 -march=znver3 -pipe -g -ggdb3 -fPIC -c -o fullscreendialog-moc.o fullscreendialog-moc.cpp
media_object.cpp: In constructor ‘media_object::media_object(bool)’:
media_object.cpp:348:5: error: ‘av_register_all’ was not declared in this scope
  348 |     av_register_all();
      |     ^~~~~~~~~~~~~~~
media_object.cpp: In member function ‘void media_object::open(const string&, const device_request&)’:
media_object.cpp:796:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  796 |         iformat = av_find_input_format("libdc1394");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
      |                                       |
      |                                       const AVInputFormat*
media_object.cpp:799:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  799 |         iformat = av_find_input_format("x11grab");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      |                                       |
      |                                       const AVInputFormat*
media_object.cpp:807:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  807 |         iformat = av_find_input_format("video4linux2");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
      |                                       |
      |                                       const AVInputFormat*
media_object.cpp:824:47: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  824 |                 iformat = av_find_input_format("mjpeg");
      |                           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                                               |
      |                                               const AVInputFormat*
media_object.cpp:886:70: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  886 |     AVCodecContext *codec_ctx = _ffmpeg->format_ctx->streams[i]->codec;
      |                                                                  ^~~~~

media_object.cpp:888:17: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  887 |         AVCodec *codec = (codec_ctx->codec_id == AV_CODEC_ID_TEXT
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  888 |                 ? NULL : avcodec_find_decoder(codec_ctx->codec_id));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 |
      |                 const AVCodec*


Reproducible: Always
Comment 1 Kobboi 2022-02-28 20:42:35 UTC
Created attachment 766059 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 20:42:37 UTC
Created attachment 766060 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 20:42:46 UTC
Compiles fine with ffmpeg-4.4.1