Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942966 - media-libs/libquicktime-1.2.4-r5[ffmpeg] does not build against ffmpeg-7
Summary: media-libs/libquicktime-1.2.4-r5[ffmpeg] does not build against ffmpeg-7
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL: https://aur.archlinux.org/packages/li...
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-7.0
  Show dependency tree
 
Reported: 2024-11-07 00:23 UTC by Alexey Chernyak
Modified: 2024-11-08 01:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernyak 2024-11-07 00:23:13 UTC
ffmpeg-7 has changed API which causes build to fail:

/mnt/tmpfs/portage/media-libs/libquicktime-1.2.4-r5/work/libquicktime-1.2.4/plugins/ffmpeg/audio.c: In function ‘lqt_ffmpeg_decode_audio’:
/mnt/tmpfs/portage/media-libs/libquicktime-1.2.4-r5/work/libquicktime-1.2.4/plugins/ffmpeg/audio.c:974:17: error: ‘AVCodecContext’ has no member named ‘channels’
  974 |     codec->avctx->channels        = quicktime_track_channels(file, track);
      |                 ^~
/mnt/tmpfs/portage/media-libs/libquicktime-1.2.4-r5/work/libquicktime-1.2.4/plugins/ffmpeg/audio.c: In function ‘lqt_ffmpeg_encode_audio’:
/mnt/tmpfs/portage/media-libs/libquicktime-1.2.4-r5/work/libquicktime-1.2.4/plugins/ffmpeg/audio.c:1205:17: error: ‘AVCodecContext’ has no member named ‘channels’
 1205 |     codec->avctx->channels = channels;
      |                 ^~
/mnt/tmpfs/portage/media-libs/libquicktime-1.2.4-r5/work/libquicktime-1.2.4/plugins/ffmpeg/audio.c:1232:49: error: ‘AVCodecContext’ has no member named ‘channels’
 1232 |                                   * codec->avctx->channels);
      |                                                 ^~


Builds fine with the ffmpeg7 patch from Arch Linux package comments (see URL).
Comment 1 Alexey Chernyak 2024-11-07 00:27:19 UTC
Also 2 of the current ffmpeg patches in portage tree are applying with fuzz:

 * Applying libquicktime-1.2.4-ffmpeg29.patch ...
patching file plugins/ffmpeg/video.c
Hunk #6 succeeded at 402 with fuzz 2.
Hunk #7 succeeded at 440 with fuzz 2.


 * Applying libquicktime-1.2.4-ffmpeg-codecs.patch ...
patching file plugins/ffmpeg/audio.c
Hunk #1 succeeded at 631 (offset 5 lines).
Hunk #2 succeeded at 700 (offset 5 lines).
Hunk #3 succeeded at 811 (offset 5 lines).
Hunk #4 succeeded at 871 (offset 5 lines).
Hunk #5 succeeded at 914 (offset 5 lines).
Hunk #6 succeeded at 991 (offset 5 lines).
Hunk #7 succeeded at 1000 (offset 5 lines).
Hunk #8 succeeded at 1500 (offset 5 lines).
patching file plugins/ffmpeg/video.c
Hunk #1 succeeded at 400 with fuzz 2.
Hunk #2 succeeded at 438 with fuzz 2.