AbedElazizShe / LightCompressor

A powerful and easy-to-use video compression library for android uses MediaCodec API.
Apache License 2.0
537 stars 116 forks source link

fix: update error handling for videoCompression to handle errors other than IllegalArgumentException in compressVideo #181

Closed LiewJunTung closed 3 months ago

LiewJunTung commented 1 year ago

I encountered an issue when trying to run the compressVideo on a file that is corrupted or a file that is not a video file, but has the extension of the video file. Example: "test.jpg" > "test.mp4"