Skip to content

Fix compatibility with FFmpeg 6.x#367

Open
ibnbd wants to merge 1 commit intodmlc:masterfrom
ibnbd:fix-ffmpeg6-compatibility
Open

Fix compatibility with FFmpeg 6.x#367
ibnbd wants to merge 1 commit intodmlc:masterfrom
ibnbd:fix-ffmpeg6-compatibility

Conversation

@ibnbd
Copy link

@ibnbd ibnbd commented Feb 3, 2026

  • Add missing #include <libavcodec/bsf.h> for AVBSFContext and av_bsf_free declarations which were moved to a separate header in newer FFmpeg versions

  • Change AVCodec* to const AVCodec* in SetVideoStream() to match the updated signature of av_find_best_stream() in FFmpeg 6.x

Tested with FFmpeg 6.0 (libavcodec 60.31.102, libavformat 60.16.100)

- Add missing #include <libavcodec/bsf.h> for AVBSFContext and av_bsf_free
  declarations which were moved to a separate header in newer FFmpeg versions

- Change AVCodec* to const AVCodec* in SetVideoStream() to match the updated
  signature of av_find_best_stream() in FFmpeg 6.x

Tested with FFmpeg 6.0 (libavcodec 60.31.102, libavformat 60.16.100)
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

Successfully merging this pull request may close these issues.

1 participant