This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Description
Expected behavior
file should be closed
Current behavior
dont close files after command execution
To Reproduce
compile and install a debuggable application that use ffmpegkit
ex:
FFmpegKit.executeAsync("-hide_banner -y -f s16le -ar 16000 -i $pcmPath -ac 1 -c:a libvorbis -f ogg $oggPath")
now:
adb shell
run-as [package name]
lsof | grep [package name]
you will see that the input and output files remain open after command execution
Screenshots

^^leaked file descriptor
Environment
- Platform: Android
- Architecture: all
- Version: 4.4 lts
- Source branch: last commit (tanersener@46afc3f)
- Android Studio version: 4.1.3
- Android NDK version: 21.4.7075529