Skip to content

ffmpeg-5.0 deprecates some types causing compilation failure #42

@zuzzurro

Description

@zuzzurro
git/loudness-scanner/scanner/inputaudio/ffmpeg/input_ffmpeg.c:30:9: error: unknown type name ‘AVCodecContext’
   30 |         AVCodecContext *codec_context;
      |         ^~~~~~~~~~~~~~
git/loudness-scanner/scanner/inputaudio/ffmpeg/input_ffmpeg.c: In function ‘ffmpeg_get_channels’:
git/loudness-scanner/scanner/inputaudio/ffmpeg/input_ffmpeg.c:45:43: error: request for member ‘channels’ in something not a structure or union
   45 |         return (unsigned)ih->codec_context->channels;

Just a heads up, I will check and see what the fix may be. And this is not the whole error log, just a few lines.

This is on Fedora 36 beta that has ffmpeg 5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions