Skip to content

Commit 7cde820

Browse files
authored
Make ffmpeg directory path absolute (#1184)
1 parent de7d148 commit 7cde820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/_core/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def load_torchcodec_shared_libraries() -> tuple[int, str]:
101101
if ffmpeg_path := shutil.which("ffmpeg"):
102102

103103
def expose_ffmpeg_dlls(): # noqa: F811
104-
ffmpeg_dir = Path(ffmpeg_path).parent
104+
ffmpeg_dir = Path(ffmpeg_path).parent.absolute()
105105
return os.add_dll_directory(str(ffmpeg_dir)) # that's the actual CM
106106

107107

0 commit comments

Comments
 (0)