depot/third_party/nixpkgs/pkgs/development/python-modules/pydub/ffmpeg-fix-path.patch
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

28 lines
910 B
Diff

diff --git a/pydub/utils.py b/pydub/utils.py
index 2694f90..7764b3f 100644
--- a/pydub/utils.py
+++ b/pydub/utils.py
@@ -172,7 +172,7 @@ def get_encoder_name():
else:
# should raise exception
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
- return "ffmpeg"
+ return "@ffmpeg@"
def get_player_name():
@@ -186,7 +186,7 @@ def get_player_name():
else:
# should raise exception
warn("Couldn't find ffplay or avplay - defaulting to ffplay, but may not work", RuntimeWarning)
- return "ffplay"
+ return "@ffplay@"
def get_prober_name():
@@ -200,7 +200,7 @@ def get_prober_name():
else:
# should raise exception
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
- return "ffprobe"
+ return "@ffprobe@"