[Bug 289074] emulators/dosbox-x: Fails to build with FFmpeg 8

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 24 Aug 2025 12:53:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289074

            Bug ID: 289074
           Summary: emulators/dosbox-x: Fails to build with FFmpeg 8
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: eduardo@FreeBSD.org

```
hardware.cpp:139:17: error: cannot initialize a parameter of type 'AVIOContext
*' with an lvalue of type 'AVCodecContext *'
  139 |                 avcodec_close(ffmpeg_aud_ctx);
      |                               ^~~~~~~~~~~~~~
/usr/local/include/libavformat/avio.h:693:29: note: passing argument to
parameter 's' here
  693 | int avio_close(AVIOContext *s);
      |                             ^
hardware.cpp:174:20: error: no member named 'key_frame' in 'AVFrame'
  174 |         ffmpeg_aud_frame->key_frame = 1;
      |         ~~~~~~~~~~~~~~~~  ^
hardware.cpp:429:3: error: use of undeclared identifier 'avcodec_close'; did
you mean 'avio_close'?
  429 |                 avcodec_close(ffmpeg_vid_ctx);
      |                 ^~~~~~~~~~~~~
      |                 avio_close
/usr/local/include/libavformat/avio.h:693:5: note: 'avio_close' declared here
  693 | int avio_close(AVIOContext *s);
      |     ^
hardware.cpp:429:17: error: cannot initialize a parameter of type 'AVIOContext
*' with an lvalue of type 'AVCodecContext *'
  429 |                 avcodec_close(ffmpeg_vid_ctx);
      |                               ^~~~~~~~~~~~~~
/usr/local/include/libavformat/avio.h:693:29: note: passing argument to
parameter 's' here
  693 | int avio_close(AVIOContext *s);
      |                             ^
hardware.cpp:1274:30: error: use of undeclared identifier 'FF_PROFILE_AAC_LOW'
 1274 |                         ffmpeg_aud_ctx->profile = FF_PROFILE_AAC_LOW;
      |                                                   ^
hardware.cpp:1534:23: error: no member named 'key_frame' in 'AVFrame'
 1534 |                                 ffmpeg_vid_frame->key_frame =
((capture.video.frames % 15) == 0)?1:0;
      |                                 ~~~~~~~~~~~~~~~~  ^
hardware.cpp:1771:1: warning: typedef requires a name [-Wmissing-declarations]
 1771 | typedef struct pcap_hdr_struct_t {
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware.cpp:1781:1: warning: typedef requires a name [-Wmissing-declarations]
 1781 | typedef struct pcaprec_hdr_struct_t {
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 13 errors generated.
```

-- 
You are receiving this mail because:
You are the assignee for the bug.