sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Fix build with FFMPEG 5

Open Vascom opened this issue 3 years ago • 8 comments

This change allow to build with FFMPEG 5.0.

Vascom avatar Apr 04 '22 09:04 Vascom

Have you not found that you need to also remove this line to allow compilation with current builds of ffmpeg?

ChrisLane avatar Apr 06 '22 14:04 ChrisLane

What line? I just made this change and compile megasync at rpmfusion with FFMPEG 5.

Vascom avatar Apr 06 '22 16:04 Vascom

The line was linked in my comment. https://github.com/meganz/sdk/blob/b7e9a4d32e2dbaffa8831cc7122afe22a30cdb0b/src/gfx/freeimage.cpp#L305

It causes this compile error: https://github.com/meganz/sdk/issues/2576

ChrisLane avatar Apr 06 '22 16:04 ChrisLane

May be it need for latest release. I used 3.9.6.b to build megasync 4.6.5.0.

Vascom avatar Apr 06 '22 16:04 Vascom

Agree. Need to remove this line. It was done in other place of my spec-file to build megasync.

Vascom avatar Apr 11 '22 08:04 Vascom

now, with ffmpeg 6, AV_CODEC_CAP_TRUNCATED is deprecated and removed

https://github.com/FFmpeg/FFmpeg/commit/dd846bc4a9163f875cc2c4e99325c1a7b4ab8e7d

sl1pkn07 avatar May 06 '23 20:05 sl1pkn07

patch for ffmpeg6

https://github.com/meganz/sdk/issues/2635#issuecomment-1495405085

sl1pkn07 avatar May 07 '23 09:05 sl1pkn07

Came across this using Bookworm debian which has ffmpeg 5.

commenting out referenced line and converting the the line 316

[code] AVCodec* decoder = avcodec_find_decoder(codecId); [/code]

to

[code] const AVCodec* decoder = avcodec_find_decoder(codecId); [/code]

also seemed to be required.

for it to get past this and move on to other work (not finished yet)

drmikecooke avatar Apr 23 '24 15:04 drmikecooke