decoder/mad: fix integer underflow with very small files
When drop_start_samples and drop_end_samples overlap and are greater than the actual number of samples, the `num_samples` calculation in SubmitPCM() could underflow. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1712
This commit is contained in:
Reference in New Issue
Block a user