Closed umlaeute closed 1 month ago
Fixed all things you reported. I don't have ffmpeg-7 here though (Newest is ffmpeg-6 from Ubuntu 24.04.) Please open a new issue when there are errors left in gmerlin-avdecoder or gmerlin-encoders.
i can confirm that i successfully compiled gmerlin-avcoder (and gavl, and gmerlin) in a pristine Debian/unstable container with ffmpeg7 and gcc14 installed.
The old svn6298 snapshots of gmerlin-avdecoder are obviously not ready for FFMPEG7. However, it seems that current
main
(cfd606f56223ca44733ec833b69fd30ca6daab33) isn't either.None of the code below has actually been tested...
the
AVInputFormat
struct no longer has asread_seek
field, as used in: https://github.com/bplaum/gmerlin-avdecoder/blob/cfd606f56223ca44733ec833b69fd30ca6daab33/lib/demux_ffmpeg.c#L623i think the correct way to check whether the stream is seekable is instead to check
priv->avfc->pb->seekable
the
AVCodecContext
struct no longer has achannels
field, instead we now must use thech_layout.nb_channels
, e.g. here https://github.com/bplaum/gmerlin-avdecoder/blob/cfd606f56223ca44733ec833b69fd30ca6daab33/lib/audio_ffmpeg.c#L209 or here https://github.com/bplaum/gmerlin-avdecoder/blob/cfd606f56223ca44733ec833b69fd30ca6daab33/lib/audio_ffmpeg.c#L403avcoded_find_decoder()
now returns asconst AVCodec*
, so we should use theconst
qualifier as well https://github.com/bplaum/gmerlin-avdecoder/blob/cfd606f56223ca44733ec833b69fd30ca6daab33/lib/audio_ffmpeg.c#L371-L375