Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build with ffmpeg 7.0 #16437

Open
marillat opened this issue Apr 15, 2024 · 2 comments
Open

Fail to build with ffmpeg 7.0 #16437

marillat opened this issue Apr 15, 2024 · 2 comments

Comments

@marillat
Copy link

Debian unstable amd64 ffmpeg 7.0
Deprecated functions before ffmpeg 6.1 have been removed in ffmpeg 7.0

CC record/drivers/record_ffmpeg.c
record/drivers/record_ffmpeg.c: In function 'ffmpeg_init_audio':
record/drivers/record_ffmpeg.c:304:16: error: 'AVCodecContext' has no member named 'channels'
  304 |    audio->codec->channels       = param->channels;
      |                ^~
record/drivers/record_ffmpeg.c:305:18: error: 'AVCodecContext' has no member named 'channel_layout'; did you mean 'ch_layout'?
  305 |    audio->codec->channel_layout = (param->channels > 1)
      |                  ^~~~~~~~~~~~~~
      |                  ch_layout
record/drivers/record_ffmpeg.c:356:22: error: 'AVCodecContext' has no member named 'channels'
  356 |          audio->codec->channels *
      |                      ^~
record/drivers/record_ffmpeg.c: In function 'encode_audio':
record/drivers/record_ffmpeg.c:1345:11: error: 'AVFrame' has no member named 'channel_layout'; did you mean 'ch_layout'?
 1345 |    frame->channel_layout = handle->audio.codec->channel_layout;
      |           ^~~~~~~~~~~~~~
      |           ch_layout
record/drivers/record_ffmpeg.c:1345:49: error: 'AVCodecContext' has no member named 'channel_layout'; did you mean 'ch_layout'?
 1345 |    frame->channel_layout = handle->audio.codec->channel_layout;
      |                                                 ^~~~~~~~~~~~~~
      |                                                 ch_layout
record/drivers/record_ffmpeg.c:1352:29: error: 'AVCodecContext' has no member named 'channels'
 1352 |          handle->audio.codec->channels,
      |                             ^~
record/drivers/record_ffmpeg.c:1358:29: error: 'AVCodecContext' has no member named 'channels'
 1358 |          handle->audio.codec->channels,
      |                             ^~
make: *** [Makefile:209: obj-unix/release/record/drivers/record_ffmpeg.o] Error 1
@phial3
Copy link

phial3 commented Apr 23, 2024

+1

@hizzlekizzle
Copy link
Contributor

Yeah, every couple of years we have to decide to either update or vendor. Guess it's that time again -_-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants