ffmpeg: check return value of avio_closep for progress report