FTBFS with ffmpeg 6.0” : Bugs : pytorch-vision package : Ubuntu

pytorch-vision FTBFS with ffmpeg 6.0:

“`
/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.cpp: In member function ‘int ffmpeg::Stream::openCodec(std::vector<ffmpeg::DecoderMetadata>*, int)’:
/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.cpp:68:42: error: ‘AV_CODEC_CAP_INTRA_ONLY’ was not declared in this scope; did you mean ‘AV_CODEC_PROP_INTRA_ONLY’?
   68 | if (codecCtx_->codec->capabilities & AV_CODEC_CAP_INTRA_ONLY) {
      | ^~~~~~~~~~~~~~~~~~~~~~~
      | AV_CODEC_PROP_INTRA_ONLY
“`

Full log: https://launchpadlibrarian.net/683921978/buildlog_ubuntu-mantic-amd64.pytorch-vision_0.14.1-2build1_BUILDING.txt.gz

Read more here: Source link