On Tue, Mar 1, 2022 at 4:10 AM Luya Tshimbalanga <l...@fedoraproject.org> wrote:
>
>
> On 2022-02-28 22:23, Mamoru TASAKA wrote:
>
> Luya Tshimbalanga wrote on 2022/03/01 15:11:
>
> Hello team,
>
> Blender failed to build with enabled FFMPEG support using ffmpeg-free-devel 
> at the following line:
>
> '''
>
> /builddir/build/BUILD/blender-3.0.1/extern/audaspace/plugins/ffmpeg/FFMPEGReader.cpp:
>  In member function 'void aud::FFMPEGReader::init(int)':
> /builddir/build/BUILD/blender-3.0.1/extern/audaspace/plugins/ffmpeg/FFMPEGReader.cpp:180:47:
>  error: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
>    180 |         AVCodec* aCodec = 
> avcodec_find_decoder(m_formatCtx->streams[m_stream]->codecpar->codec_id);
>        |                           
> ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>        |                                               |
>        |                                               const AVCodec*
> gmake[2]: *** [extern/audaspace/CMakeFiles/audaspace.dir/build.make:1549: 
> extern/audaspace/CMakeFiles/audaspace.dir/plugins/ffmpeg/FFMPEGReader.cpp.o] 
> Error 1
>
> '''
>
> Could someone handle the AVCodec issue please?
> Available scratch-build result:
> https://koji.fedoraproject.org/koji/taskinfo?taskID=83496011
>
>
> Thanks in advance.
>
>
> Change to const AVCodec* aCodec = avcodec_find_decoder(....
> ref:
> https://github.com/blender/blender/commit/af6a1b08e3f0d0070ac9423868d2d3f81057717a
>
>
> Thanks! Next step is to remove libavdevice.h from Blender as ffmpeg-free 
> excluded it.
>
> Scratch result with applied patch so far: 
> https://koji.fedoraproject.org/koji/taskinfo?taskID=83502291
>
> Scratch result with removed libavdecice.h: 
> https://koji.fedoraproject.org/koji/taskinfo?taskID=83503990
>

We didn't exclude it. FFmpeg 5.0 removed it entirely. They replaced
the header with libavdevice/avdevice.h.



-- 
真実はいつも一つ!/ Always, there's only one truth!
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to