linkedin / LiTr

Lightweight hardware accelerated video/audio transcoder for Android.
BSD 2-Clause "Simplified" License
612 stars 85 forks source link

Allow transcoders advance to next track or EoS past selection end #230

Closed izzytwosheds closed 1 year ago

izzytwosheds commented 1 year ago

One of recent bug reports (#216 ) has an interesting use case - metadata track that starts after selection range end. Current logic never advances far past the end of selection, so we never process that metadata track thus "hanging" indefinitely.

Changing trim logic to handle cases like this:

Fix was tested manually with the test file provided in that bug report, fix worked. Unit tests were added.