-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
swresample: stop using deprecated {in,out}_channel_layout options #13665
Conversation
Download the artifacts for this pull request: |
aded18a
to
09d1584
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also for consistency with upstream naming, should probably change
diff --git a/filters/f_lavfi.c b/filters/f_lavfi.c
index de3cd52a2a..555d6f1c21 100644
--- a/filters/f_lavfi.c
+++ b/filters/f_lavfi.c
@@ -1037,7 +1037,7 @@ static const char *get_avopt_type_name(enum AVOptionType type)
#if LIBAVUTIL_VERSION_MAJOR < 59
case AV_OPT_TYPE_CHANNEL_LAYOUT: return "channellayout";
#else
- case AV_OPT_TYPE_CHLAYOUT: return "channellayout";
+ case AV_OPT_TYPE_CHLAYOUT: return "ch_layout";
#endif
case AV_OPT_TYPE_BOOL: return "bool";
case AV_OPT_TYPE_CONST: // fallthrough
These options were deprecated with the addition of the channel layout API about a couple of years ago*. Unfortunately, we never saw the deprecation messages so it went unnoticed until they were completely removed with the recent major version bump. Fix this by setting in_chlayout and out_chlayout instead if we have AV_CHANNEL_LAYOUT. Fixes mpv-player#13662. *: FFmpeg/FFmpeg@8a5896e
09d1584
to
1a40b2f
Compare
This is only ever used for help output. Could change if you want to, but probably it would be better to keep it consistent across all versions (i.e. either |
I think |
To better match upstream naming.
Alright went with that. |
hey I have this issue in my mpv installed through homebrew |
i am also having this issue on macOS since homebrew upgraded ffmpeg to 7.0. Can you make a release of the mpv formula (home brew call command line programs formula)? |
i fixed this by building from source, steps:
after building,
|
Could you make a new mpv release to solve this issue for macOS users? Since homebrew upgraded ffpmeg 7.0 on April 9th, this issue starts to show up on macOS when playing building from source works, but that will build every time when mpv has a new commit when running |
Report it to them, not here. Not our fault they ship broken packages or build formulas. mpv 0.38 will be released, but it is completely unrelated to the issues you are facing. They already patch 0.37 mpv as it doesn't even build with ffmpeg 7. This PR should also be included. |
Sorry for the trouble. Homebrew users can run |
Thanks for fixing this. |
These options were deprecated with the addition of the channel layout API about a couple of years ago*. Unfortunately, we never saw the deprecation messages so it went unnoticed until they were completely removed with the recent major version bump. Fix this by setting in_chlayout and out_chlayout instead if we have AV_CHANNEL_LAYOUT.
Fixes #13662.
*: FFmpeg/FFmpeg@8a5896e