Fix FFMpeg API compatibility for modern FFMpeg 6.x #81
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR resolves issue #78 by updating
FFMpegWrapper.cppto use the modern FFMpeg API, fixing compilation errors with FFMpeg 6.x.Issues Fixed
The original code used deprecated FFMpeg APIs that were removed in recent versions:
av_register_all()removed: This function was deprecated in FFMpeg 4.0 and removed in 5.0+avcodec_find_decoder()now returnsconst AVCodec *instead ofAVCodec *channelsfield replaced withch_layout.nb_channelsin bothAVCodecParametersandAVFrameav_get_default_channel_layout()deprecated in favor ofav_channel_layout_default()Changes Made
av_register_all()call with explanatory comment (auto-registration since FFMpeg 4.0)AVCodec *decodertoconst AVCodec *decoder->channelswith->ch_layout.nb_channelschannel_layoutfield checks withch_layoutequivalentsav_get_default_channel_layout()toav_channel_layout_default()av_opt_set_int()with*_channel_layouttoav_opt_set_chlayout()with*_chlayout<libavutil/channel_layout.h>for new channel layout APITesting
anmp-dumpbinary executes correctlyBackward Compatibility
These changes target FFMpeg 4.0+ API. The new channel layout API was introduced in FFMpeg 5.1, but the other changes (removing
av_register_all(), const correctness) are compatible with FFMpeg 4.0+.Closes #78
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.