Update func.php

Prevents FFMPEG error (Could not get frame filename number 2 from pattern), so only one thumbnail is created.
Merge pull request #673 from 4lloyd/patch-1

Update func.php