nullobsi / cantata

Qt Graphical MPD Client
GNU General Public License v3.0
33 stars 2 forks source link

bug: FFMPEG avcodec_close deprecated #31

Open nullobsi opened 1 month ago

nullobsi commented 1 month ago

Describe the bug

[10/203] Building CXX object replaygain/CMakeFiles/cantata-replaygain.dir/ffmpeginput.cpp.o
/home/nullobsi/Developer/cantata/replaygain/ffmpeginput.cpp:252:3: warning: 'avcodec_close' is deprecated [-Wdeprecated-declarations]
  252 |                 avcodec_close(handle->codecContext);
      |                 ^
/usr/include/libavcodec/avcodec.h:2386:1: note: 'avcodec_close' has been explicitly marked deprecated here
 2386 | attribute_deprecated
      | ^
/usr/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
  100 | #    define attribute_deprecated __attribute__((deprecated))
      |                                                 ^
1 warning generated.

Additional context Newer versions of ffmpeg have a different semantic about this. Need to check if the replacement function is implemented in older versions too.